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
execution of batch
Moderator: DosItHelp
Re: execution of batch
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
Steffen