Link to home
Start Free TrialLog in
Avatar of Carl Billington
Carl BillingtonFlag for Australia

asked on

Command not working when run in a .bat file

If I type  this command a command prompt it works fine;

FOR /D %p IN ("E:\Data\eBoards\*.*") DO rmdir "%p" /s /q

Open in new window


However, if I run this command when it is placed in a .bat file it does not work.
 
Does anyone know why?
ASKER CERTIFIED SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Carl Billington

ASKER

Awesome! Thank you.