【问题标题】:Using Powershell script to create folder in Task Scheduler使用 Powershell 脚本在任务计划程序中创建文件夹
【发布时间】:2013-08-06 06:09:09
【问题描述】:

谁能帮我告诉我在任务计划程序中创建文件夹的 Powershell 命令? 我已经创建了在单独文件夹中创建任务的脚本,但如果该文件夹不存在,我需要创建一个。

即使在谷歌搜索很多之后也找不到任何命令。

如果有人能帮助我,那就太好了。

【问题讨论】:

    标签: powershell scheduled-tasks


    【解决方案1】:

    使用 schtasks.exe。也许这个话题有答案:SchTasks.exe to create a task folder

    schtasks /create /xml "MyTask.xml" /tn "My Task Folder\My New Task"
    

    【讨论】:

    • 谢谢!这真的很有帮助。虽然我的情况有点不同,但确实帮助我提出了这个想法。
    猜你喜欢
    • 1970-01-01
    • 2011-02-26
    • 2017-07-02
    • 1970-01-01
    • 1970-01-01
    • 2014-12-28
    • 2015-07-22
    • 2021-08-25
    相关资源
    最近更新 更多