Aid*_*api 0 windows scheduled-tasks windows-server-2003
我想知道如何使用命令提示符安排任务.现在我知道你可以在网上找到这个,但我还没找到我一直在找的东西.
问题是我必须使用的操作系统是瑞典语(瑞典语的Windows Server 2003).
它需要运行位于"C:\ Documents and Setting \Administratör\ Skrivbord\Midnight.exe"的程序.
它应该每天午夜左右运行.
有人知道如何在cmd中安排这个吗?
我确实拥有管理员权限,因此权限不应成为问题.
只需在.bat文件中使用schtasks windows实用程序或在CMD中手动使用:
schtasks /create /ru Admin /rp paswd /tn "daily work" /tr "C:\Documents and Setting\Administratör\Skrivbord\Midnight.exe" /sc daily /st 23:55:00
Run Code Online (Sandbox Code Playgroud)
瑞典语不应该是一个特例:)
off course /ru是我们用来运行任务的用户名