running a batch script across different drives

71 Views Asked by At

I need to run this bat script on an F:/ drive.

Cd "c:\Windows\System32\inetsrv\"
appcmd stop apppool /apppool.name:mywebsite.com
TIMEOUT /T 10
appcmd start apppool /apppool.name:mywebsite.com

Is there a way to make it work?

When I run this script ( from c: to c: ) , it works. But my watch dog php script is on an f:/ drive.

Both the c: and f: are on the same server.

1

There are 1 best solutions below

0
Average Joe On

Stephan got that right. /D is the answer.