Specifying the running directory for Scheduled Tasks using schtasks.exe

后端 未结 7 1227
野的像风
野的像风 2020-12-01 07:27

I have an application which gets called by a scheduled task. It moved from Windows Server 2003 to Windows Server 2008. On 2003, the app ran in the directory where the execut

7条回答
  •  误落风尘
    2020-12-01 08:00

    I recently came across the same issue. The way I resolved it was to add the /V1 switch to the schtasks command.

    /V1 creates a pre-vista compatible scheduled task and automatically populates the Start In directory.

提交回复
热议问题