Download the Tom's Hardware App from the App Store
The reference for current tech news
Yes No
Tom's Hardware > Forum > Windows XP > Configuration & Customization > cmd.exe shortcut with current dir

cmd.exe shortcut with current dir

Forum Windows XP : Configuration & Customization cmd.exe shortcut with current dir

Word :    Username :           
 
- 0 +

How can I create a shortcut in winxp so it launches with the prompt in the folder that contains the shortcut

I'm not looking for the program that creates a "Run command from here" in context menu, beacuse I want to use the shortcut in different PCs

it should look like:

%windir%\system32\cmd.exe [currentexplorerdirectory]



I've tried with cmd.exe /k cd %1 but it doesn't seem to work

Thanks.

Reply to rgamed
Register or log in to remove.

1. Create a shortcut to %ComSpec%
2. Change its "Start in" setting to %cd%

Reply to abcdxyzw

This topic has been closed by Mousemonkey

------------------------------ http://img545.imageshack.us/img545/3995/bl11.gif
Reply to Mousemonkey
Register or log in to remove.
Tom's Hardware > Forum > Windows XP > Configuration & Customization > cmd.exe shortcut with current dir
Go to:

There are 752 identified and unidentified users. To see the list of identified users, Click here.

  • Ask the community now
  • Publish
Ad
Latest best answer
Name change?
By randoMIZER, 9 days ago:

I presume that special characters aren't allowed by the site, so I don't think that could...

They won a badge
Join us in greeting them