A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » The Basics
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Odd Behavior: CMD.EXE / Command Prompt default folder changing ?



 
 
Thread Tools Display Modes
  #1  
Old April 2nd 09, 09:46 AM posted to microsoft.public.windowsxp.basics,microsoft.public.windowsxp.setup_deployment,microsoft.public.windowsxp.customize
Jaruzel
external usenet poster
 
Posts: 4
Default Odd Behavior: CMD.EXE / Command Prompt default folder changing ?

Hi all,

I've stumbled over a peculiarity in my Windows SP3 Pro (+ all
hotfixes) build (it's for mass deployment, but this isn't a deployment
issue per se).

Basically the CMD.EXE default folder is following the current explorer
window folder.

For example, if I have explorer open at C:\Drivers\Intel and then
click on Start Menu, then RUN, and type ONLY 'cmd' and click OK,
instead of cmd.exe launching with my profile folder as the default
folder, it opens with the current explorer path as the default folder,
ie. C:\Drivers\Intel. It doesn't matter where on the disk explorer is
pointing to, cmd.exe will mirror it.

Whereas this behavior is nice, I am concerned that I don't know what
changed it, or why. My primary issue is that this may affect any batch
files or scripts that launch in the user context.

I HAVE checked the Command Processor\AutoRun keys in the registry and
they are blank or non-existent, so it isn't that.

Any ideas, anyone, as to what caused this change in behavior ?

Thanks,

Matt Owen
http:/www.mattowen.com
Ads
  #2  
Old April 4th 09, 12:16 AM posted to microsoft.public.windowsxp.basics,microsoft.public.windowsxp.setup_deployment,microsoft.public.windowsxp.customize
Kelly
external usenet poster
 
Posts: 1,401
Default Odd Behavior: CMD.EXE / Command Prompt default folder changing ?

This happens when you have added CMD to the right click.

--

All the Best,
Kelly (MS-MVP/DTS&XP)

Taskbar Repair Tool Plus!
http://www.kellys-korner-xp.com/taskbarplus!.htm


"Jaruzel" wrote in message
...
Hi all,

I've stumbled over a peculiarity in my Windows SP3 Pro (+ all
hotfixes) build (it's for mass deployment, but this isn't a deployment
issue per se).

Basically the CMD.EXE default folder is following the current explorer
window folder.

For example, if I have explorer open at C:\Drivers\Intel and then
click on Start Menu, then RUN, and type ONLY 'cmd' and click OK,
instead of cmd.exe launching with my profile folder as the default
folder, it opens with the current explorer path as the default folder,
ie. C:\Drivers\Intel. It doesn't matter where on the disk explorer is
pointing to, cmd.exe will mirror it.

Whereas this behavior is nice, I am concerned that I don't know what
changed it, or why. My primary issue is that this may affect any batch
files or scripts that launch in the user context.

I HAVE checked the Command Processor\AutoRun keys in the registry and
they are blank or non-existent, so it isn't that.

Any ideas, anyone, as to what caused this change in behavior ?

Thanks,

Matt Owen
http:/www.mattowen.com


  #3  
Old April 4th 09, 12:16 AM posted to microsoft.public.windowsxp.basics,microsoft.public.windowsxp.setup_deployment,microsoft.public.windowsxp.customize
Kelly
external usenet poster
 
Posts: 1,401
Default Odd Behavior: CMD.EXE / Command Prompt default folder changing ?

This happens when you have added CMD to the right click.

--

All the Best,
Kelly (MS-MVP/DTS&XP)

Taskbar Repair Tool Plus!
http://www.kellys-korner-xp.com/taskbarplus!.htm


"Jaruzel" wrote in message
...
Hi all,

I've stumbled over a peculiarity in my Windows SP3 Pro (+ all
hotfixes) build (it's for mass deployment, but this isn't a deployment
issue per se).

Basically the CMD.EXE default folder is following the current explorer
window folder.

For example, if I have explorer open at C:\Drivers\Intel and then
click on Start Menu, then RUN, and type ONLY 'cmd' and click OK,
instead of cmd.exe launching with my profile folder as the default
folder, it opens with the current explorer path as the default folder,
ie. C:\Drivers\Intel. It doesn't matter where on the disk explorer is
pointing to, cmd.exe will mirror it.

Whereas this behavior is nice, I am concerned that I don't know what
changed it, or why. My primary issue is that this may affect any batch
files or scripts that launch in the user context.

I HAVE checked the Command Processor\AutoRun keys in the registry and
they are blank or non-existent, so it isn't that.

Any ideas, anyone, as to what caused this change in behavior ?

Thanks,

Matt Owen
http:/www.mattowen.com


  #4  
Old April 4th 09, 12:39 AM posted to microsoft.public.windowsxp.basics,microsoft.public.windowsxp.setup_deployment,microsoft.public.windowsxp.customize
Tim Meddick
external usenet poster
 
Posts: 1,995
Default Odd Behavior: CMD.EXE / Command Prompt default folder changing ?

Hi Jaruzel,
to change the default folder back to your user profile
folder add this line to the file Autoexec.nt in the system32 folder:

if %1]==] cd %USERPROFILE%

Adding this will NOT affect the right-click "Command Prompt from Here" shell
extension, will work as normal. Or you could change %USERPROFILE% for any
folder you want to be the default folder for Command Prompts.
--

Cheers, Tim Meddick, Peckham, London.


"Kelly" wrote in message
...
This happens when you have added CMD to the right click.

--

All the Best,
Kelly (MS-MVP/DTS&XP)

Taskbar Repair Tool Plus!
http://www.kellys-korner-xp.com/taskbarplus!.htm


"Jaruzel" wrote in message
...
Hi all,

I've stumbled over a peculiarity in my Windows SP3 Pro (+ all
hotfixes) build (it's for mass deployment, but this isn't a deployment
issue per se).

Basically the CMD.EXE default folder is following the current explorer
window folder.

For example, if I have explorer open at C:\Drivers\Intel and then
click on Start Menu, then RUN, and type ONLY 'cmd' and click OK,
instead of cmd.exe launching with my profile folder as the default
folder, it opens with the current explorer path as the default folder,
ie. C:\Drivers\Intel. It doesn't matter where on the disk explorer is
pointing to, cmd.exe will mirror it.

Whereas this behavior is nice, I am concerned that I don't know what
changed it, or why. My primary issue is that this may affect any batch
files or scripts that launch in the user context.

I HAVE checked the Command Processor\AutoRun keys in the registry and
they are blank or non-existent, so it isn't that.

Any ideas, anyone, as to what caused this change in behavior ?

Thanks,

Matt Owen
http:/www.mattowen.com




  #5  
Old April 4th 09, 12:39 AM posted to microsoft.public.windowsxp.basics,microsoft.public.windowsxp.setup_deployment,microsoft.public.windowsxp.customize
Tim Meddick
external usenet poster
 
Posts: 1,995
Default Odd Behavior: CMD.EXE / Command Prompt default folder changing ?

Hi Jaruzel,
to change the default folder back to your user profile
folder add this line to the file Autoexec.nt in the system32 folder:

if %1]==] cd %USERPROFILE%

Adding this will NOT affect the right-click "Command Prompt from Here" shell
extension, will work as normal. Or you could change %USERPROFILE% for any
folder you want to be the default folder for Command Prompts.
--

Cheers, Tim Meddick, Peckham, London.


"Kelly" wrote in message
...
This happens when you have added CMD to the right click.

--

All the Best,
Kelly (MS-MVP/DTS&XP)

Taskbar Repair Tool Plus!
http://www.kellys-korner-xp.com/taskbarplus!.htm


"Jaruzel" wrote in message
...
Hi all,

I've stumbled over a peculiarity in my Windows SP3 Pro (+ all
hotfixes) build (it's for mass deployment, but this isn't a deployment
issue per se).

Basically the CMD.EXE default folder is following the current explorer
window folder.

For example, if I have explorer open at C:\Drivers\Intel and then
click on Start Menu, then RUN, and type ONLY 'cmd' and click OK,
instead of cmd.exe launching with my profile folder as the default
folder, it opens with the current explorer path as the default folder,
ie. C:\Drivers\Intel. It doesn't matter where on the disk explorer is
pointing to, cmd.exe will mirror it.

Whereas this behavior is nice, I am concerned that I don't know what
changed it, or why. My primary issue is that this may affect any batch
files or scripts that launch in the user context.

I HAVE checked the Command Processor\AutoRun keys in the registry and
they are blank or non-existent, so it isn't that.

Any ideas, anyone, as to what caused this change in behavior ?

Thanks,

Matt Owen
http:/www.mattowen.com




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 04:01 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.