Page 1 of 1
execution of batch
Posted: 25 Jun 2018 04:50
by pp8771
I have batch program under folder1 but not able to execute by issuing following commands from run menu
cmd /c ""D:\folder1\a1.bat""
cmd /k ""D:\folder1\a1.bat""
it is giving error access denied
Re: execution of batch
Posted: 25 Jun 2018 09:37
by aGerman
Not sure where the error message is coming from. You might set ECHO ON in you batch code in order to see if another command is causing the error. Also note that the current working directory of the environment you execute the batch code is set to your user profile if you call it from the Run dialog. Thus, don't assume that other files or scripts in the D:\folder1 directory will be visible for your code.
Steffen