Classic Shell http://www.classicshell.net/forum/ |
|
Homedir for commandprompt when open from search http://www.classicshell.net/forum/viewtopic.php?f=12&t=2317 |
Page 1 of 1 |
Author: | jasb [ Fri Mar 14, 2014 3:46 pm ] |
Post subject: | Homedir for commandprompt when open from search |
Hi, When the search is used for cmd, ex: write cmd on the search, everything's fine, it opens without problems, BUT, it opens with the directory on c:\windows\system32. It should open in the current user's home dir, for example: c:\users\mike Can you adjust this? Thanks in advanced, |
Author: | Gaurav [ Sat Mar 15, 2014 1:13 am ] |
Post subject: | Re: Homedir for commandprompt when open from search |
Windows has a built-in feature to change the cmd prompt startup directory: http://windowsxp.mvps.org/autoruncmd.htm |
Author: | jasb [ Sat Mar 15, 2014 4:42 am ] |
Post subject: | Re: Homedir for commandprompt when open from search |
Hi, I understand what you're saying, but it's not what I tried to say. If I start the cmd prompt from using the menu from: Programs/Windows System/Command Prompt, it starts with the current home, correct. Only when I start it from the search it doesn't. The builtin windows menu (vista/7) starts cmd prompt when opened from search correctly pointing to the current user's home dir, no addicional configuration is needed. Is it possible to have this behavior in classicshell? |
Author: | Ivo [ Sat Mar 15, 2014 8:08 am ] |
Post subject: | Re: Homedir for commandprompt when open from search |
The "Command Prompt" shortcut has a built-in working directory setting. The "cmd.exe" doesn't, so the start menu has to decide what directory to use. I will investigate this and see if it makes sense to use the home directory for all programs started from the menu. I don't want to make an exception specifically for cmd.exe. |
Author: | jasb [ Sat Mar 15, 2014 8:13 am ] |
Post subject: | Re: Homedir for commandprompt when open from search |
Thanks ![]() Let me know what you're going to decide!! |
Author: | Gaurav [ Sat Mar 15, 2014 9:11 am ] |
Post subject: | Re: Homedir for commandprompt when open from search |
I think in Classic Shell 4.0.1/4.0.2, a change was made so the working directory is set to the directory of the file. |
Author: | Ivo [ Sat Mar 15, 2014 2:28 pm ] |
Post subject: | Re: Homedir for commandprompt when open from search |
I looked at the behavior of the Windows 7 start menu and it is quite arbitrary:
I don’t think this makes sense. It shouldn’t make a difference how you start something. I think the correct behavior is to use the directory of the EXE because it may have some auxiliary files that it needs to function correctly. |
Page 1 of 1 | All times are UTC - 8 hours [ DST ] |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |