Home » Questions » Computers [ Ask a new question ]

Problem with command line in windows

Problem with command line in windows

I copy the cmd.exe to a new location, then I run it to get the current directory location at that folder. But just recently, there is always this message:

Asked by: Guest | Views: 84
Total answers/comments: 2
Guest [Entry]

To open a command prompt at a specfic location, just hold down the Shift key when you right-click on a file or folder, and you should see the Open Command Window Here menu item.
Guest [Entry]

"You're getting those messages because you're running the CMD.exe from a folder different than what's defined in the %COMSPEC% environment variable. WHY that matters, I'm not sure, probably due to dependencies.

If you want to open a command prompt to a specific folder you can right-click and pick ""Open Command Window Here"" (built into Vista and 7). It's extra slick because if you do it on a network share Windows will automatically map a drive letter to it for you.

Another option is to make a new CMD shortcut.

Make a new shortcut, enter %COMSPEC% as the Target, and give it a name you'd like. Once it's created, edit the shortcut and change the ""Start in"" path to where you'd like the command prompt to open to."