Classic Shell development was stopped in December 2017. For now the forum remains online as reference, but is read-only. Registration of new users is disabled.
It is currently Sun Oct 19, 2025 11:00 am

All times are UTC - 8 hours [ DST ]


Forum rules


Before posting a bug report or a feature request, search the forum for an older post on the same topic. If you are reporting a crash, try capturing a crash dump. You can find instructions here: How to capture crash dumps



Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Fri Mar 14, 2014 3:46 pm 
Offline

Joined: Fri Mar 14, 2014 3:19 pm
Posts: 3
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,


Top
 Profile  
Reply with quote  
PostPosted: Sat Mar 15, 2014 1:13 am 
Offline
User avatar

Joined: Thu Jan 03, 2013 12:38 am
Posts: 5374
Windows has a built-in feature to change the cmd prompt startup directory: http://windowsxp.mvps.org/autoruncmd.htm

_________________
Links to some general topics:

Compare Start Menus

Read the Search box usage guide.

I am a Windows enthusiast and helped a little with Classic Shell's testing and usability/UX feedback.


Top
 Profile  
Reply with quote  
PostPosted: Sat Mar 15, 2014 4:42 am 
Offline

Joined: Fri Mar 14, 2014 3:19 pm
Posts: 3
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?


Top
 Profile  
Reply with quote  
PostPosted: Sat Mar 15, 2014 8:08 am 
Offline
Site Admin
User avatar

Joined: Wed Jan 02, 2013 11:38 pm
Posts: 5333
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.


Top
 Profile  
Reply with quote  
PostPosted: Sat Mar 15, 2014 8:13 am 
Offline

Joined: Fri Mar 14, 2014 3:19 pm
Posts: 3
Thanks :)

Let me know what you're going to decide!!


Top
 Profile  
Reply with quote  
PostPosted: Sat Mar 15, 2014 9:11 am 
Offline
User avatar

Joined: Thu Jan 03, 2013 12:38 am
Posts: 5374
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.

_________________
Links to some general topics:

Compare Start Menus

Read the Search box usage guide.

I am a Windows enthusiast and helped a little with Classic Shell's testing and usability/UX feedback.


Top
 Profile  
Reply with quote  
PostPosted: Sat Mar 15, 2014 2:28 pm 
Offline
Site Admin
User avatar

Joined: Wed Jan 02, 2013 11:38 pm
Posts: 5333
I looked at the behavior of the Windows 7 start menu and it is quite arbitrary:
  • If you start a program by just typing its exe name (assuming it is found), then it starts in the user home directory
  • If you start a program by typing the full path name then it starts in the directory of the exe
  • If you place a shortcut in the start menu with no explicit working directory then if you just click on it the exe will start in System32
  • Unless you search for the shortcut and run it, and then it starts in the directory of the shortcut (inside the actual start menu folder)

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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: Google Adsense [Bot] and 68 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group, Almsamim WYSIWYG Classic Shell © 2010-2016, Ivo Beltchev.
All right reserved.