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.
Stephan got that right. /D is the answer.