开发者

How do i use Windows task manager to run a command? [closed]

开发者 https://www.devze.com 2023-04-04 09:23 出处:网络
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 11 years ago.

Improve this question 开发者_如何学C

I 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 
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号