Quantcast
Channel: Active questions tagged windows - Super User
Viewing all articles
Browse latest Browse all 9875

How can I make a batch script open a command-line window in it's current location?

$
0
0

I'm working with a program that requires me to open a command-line window in the directory containing the some files. The issue I face is that Windows has since removed the option from the context menu top open CMD in a given location. I want to know how I can make a batch script run this option when executed in a given folder or location (i.e. where the script is located). I know I can run cmd with this code:

%SystemRoot%\System32\cmd.exe pause

Using this script does not appear to function the same way. I should be getting some other information in the command window according to the documentation.


Viewing all articles
Browse latest Browse all 9875

Trending Articles