execution of batch

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
pp8771
Posts: 15
Joined: 12 Jun 2018 06:54

execution of batch

#1 Post by pp8771 » 25 Jun 2018 04:50

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

aGerman
Expert
Posts: 4678
Joined: 22 Jan 2010 18:01
Location: Germany

Re: execution of batch

#2 Post by aGerman » 25 Jun 2018 09:37

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

Post Reply