JSI Tip 7857. How do I get 'Start / Run / CMD / OK' to open at the root of the C: drive, or any other folder?
Jerold Schulman
March 21, 2004
1 Min Read
In tip 2373, we learned about the CMD processor AutoRun registry Value Name.
To use the AutoRun Value Name to open the CMD window at a specified folder, like C:, set this string (REG_SZ) data type to:
CD /D C:
NOTE: This setting will become effective immediately if configured at HKEY_CURRENT_USERSoftwareMicrosoftCommand Processor.
NOTE: If you configure the AutoRun Value Name at HKEY_LOCAL_MACHINESOFTWAREMicrosoftCommand Processor only, a restart is required.
NOTE: If you require a more complex setting, that makes use of environment variables, and/or requires multiple commands, set the AutoRun Value Name to the full path of a batch file that contains the commands.
About the Author
Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.
You May Also Like