How do i use Windows task manager to run a command? [closed]
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question 开发者_如何学CI am trying to schedule a task to run on through the windows task manager to run this command
C:\php\php.exe -f "C:\leads\my_file.php"
I can run the file by going to cmd and typing the command but in the windows task manager there is a place for actions but i have no idea how to put my command there to run that instead....any ideas
i'd put it in a vbs and run it from there.
you can reference the vbs w/
cscript "c:\path\nameofvbs.vbs"
that will run the script or in schedule task just put the .vbs file name and it should run.
the content of the .vbs would be
Set oShell = wscript.createObject("wscript.shell")
oShell.Run "C:\php\php.exe -f C:\leads\my_file.php", 0, False
WScript.Quit
精彩评论