使用Win32COM在Windows任务调度程序中创建一个新文件夹
我找不到一种在Windows任务调度程序中使用Win32COM创建新文件夹的方法,我只能打开已经创建的一个文件夹,有
import win32com.client as win32
service = win32.gencache.EnsureDispatch('Schedule.Service')
service.Connect()
root_folder = service.GetFolder("\\")
一个方法可以创建一个新的新文件夹,而无需进入调度程序本身?
I can't find a way to create a new folder with win32com in the Windows Task Scheduler, i can only open an already created one such has
import win32com.client as win32
service = win32.gencache.EnsureDispatch('Schedule.Service')
service.Connect()
root_folder = service.GetFolder("\\")
is there way to create a new one without going into the scheduler itself?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看来您需要将其施加到
itaskFolder
首先是createfolder
方法Looks like you need to cast it to
ITaskFolder
first an then acess theCreateFolder
method