Hi, I have a folder full of files, and I'm looking for a way to automate the following:
Through a shortcut or Batch file;
Open the command prompt at a specific location, so the command prompt is ready to execute commands in that directory (the same as "Open Command Window here"), with arguments ready to execute when the file or shortcut opens. However I've ran into problems getting this to work. I have this in my shortcut:
C:\Windows\System32\cmd.exe /k "cd C:\Users\lewis\Desktop\Main\Dir" C:\Python27\python.exe example.py -a ptc -u _____ -p _____ -l "__ __, _" -st 10"
Note that the "_" are replaced with letters/numbers on my screen.
In this case, the command prompt window opens, but I get a "The filename, directory name, or volume label syntax is incorrect." error.
However if I do it this way, it works:
Go to "C:\Users\lewis\Desktop\Main\Dir" --> Shift+Right-click --> "Open Command Window here" --> Paste in this Dir:
C:\Python27\python.exe example.py -a ptc -u _____ -p _____ -l "__ __, _" -st 10"
So, How can I get it to automate instead of me having to do it manually, and why does it function differently when I do it manually?