Batch command
Posted: 07 Feb 2022 12:10
Good day,
new to Dos and batch files programming and have tried to figure this out without any luck.
I'm trying to run a batch file to open a dos command window (show it in Windows) and then have a pause. Once the keyboard is pressed change the directory to C:\Program Files (x86)\Symantec\Symantec Endpoint Protection showing the directory and then press the pause to exit.
This is what I have which doesn't work 100%. It opens two DOS windows one with the below and another one C:\Windows\system32>
start cmd.exe
pause
cd "C:\Program Files (x86)\Symantec\Symantec Endpoint Protection"
pause
new to Dos and batch files programming and have tried to figure this out without any luck.
I'm trying to run a batch file to open a dos command window (show it in Windows) and then have a pause. Once the keyboard is pressed change the directory to C:\Program Files (x86)\Symantec\Symantec Endpoint Protection showing the directory and then press the pause to exit.
This is what I have which doesn't work 100%. It opens two DOS windows one with the below and another one C:\Windows\system32>
start cmd.exe
pause
cd "C:\Program Files (x86)\Symantec\Symantec Endpoint Protection"
pause