rubyquyen
Content Type
Profiles
Forums
Events
Posts posted by rubyquyen
-
-
...
You're right, but I was replying to the very first message of this thread :
When I launch cmd.exe on my XP SP2 (via Start | Run), the current directory is my Home Directory; I get this :D:\Documents and Settings\Guillaume>
How can I set up Windows to open cmd.exe in another directory (C:\ or anything else) ?
(note that his %SystemDrive% is not C and C:\ was only given as an example)
so I was showing the way (= modify the default path and if needed the drive). IMHO, he would be capable of generalising himself the case.
The most important thing to my eyes was the registry key that, so far, nobody had pointed out. Once we got it, using .reg or reg.exe or any other ways were just a question of personal preference.
BTW, thanks for the switch /d that I didn't know. This scenario is certainly more elegant than && cd
0 -
What about this?
REG ADD "HKLM\SOFTWARE\Microsoft\Command Processor" /v AutoRun /d "%%SystemDrive%%" /f
or in reg format
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor]
"AutoRun"="%SystemDrive%"That sounds good, except that if you want C:\mydir as default, but your system is on D:, that won't work
0 -
Note the single backslash. Otherwise you get an error (surprise...). Thanks for this though! Very nice!
Yes, single backslash if you enter the value directly into the registry. Mine is extracted from a .reg file, so double backslash are required.
0 -
Hello,
When I launch cmd.exe on my XP SP2 (via Start | Run), the current directory is my Home Directory; I get this :
Microsoft Windows XP [version 5.1.2600]
© Copyright 1985-2001 Microsoft Corp.
D:\Documents and Settings\Guillaume>
How can I set up Windows to open cmd.exe in another directory (C:\ or anything else) ?
[HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor]
"AutoRun"="C: && cd \\"Voilà
0
cmd.exe starting directory
in Windows Tips 'n' Tweaks
Posted
Yes, I edited my message (one of the most important reasons is to correct my bad English that I was afraid not to be enough clear to express my idea), but from the first version (of that message), I already said that I replied to the first post of the thread. That's the reality (see my post on May 14 2005, 02:18 AM).
I don't know if Guillaume's winnt.sif had been configured to move the profile folders to another partition, you're like right. I didn't think about this possibility because my current system drive is on E.
I insist that I gave the way (= modify the default path and if needed the drive) and don't impose any choice (one should be capable of replacing C with any drive of his choice, and \ with any directory). Your reply on May 16 2005, 02:30 PM is perfect (cd /d C:\mydir), but the previous one IMHO is much less (I don't thinks %SystemDrive% is a generic solution in this particular case).
You shouldn't take the fact that one says your reply is not a general solution as a personal attack (at least in this case) and be nervous for that. Keep cool ! We're here to exchange experience, that's all ! I could be forever a simple reader if somebody had given the answer to that question (note that the thread was opened on May 3rd). So I said to myself : I know it, why not contribute my little knowledge to express my thankfulness for many things I learnt from them ? I'm new to this forum that I discovered some days before, but that doesn't mean I never frequent any other one in other languages and don't know that many different solutions may resolve a single problem. I'm really being disappointed.