问题描述
所以现在我正在使用一个脚本,提示输入YYYYMMDD格式的日期,然后以相同的格式创建一个文件夹。然后它会浏览并将PDF复制到该文件夹。 我要做的是通过将脚本添加到计划任务来自动执行此流程
,但为了使其工作,我需要脚本以某种方式自动检查日期,然后根据当天的日期以我需要的格式(YYYYMMDD)创建文件夹。
现在只使用VBS几个月了我希望有人可以帮助我推动正确的方向。如果我还不够清楚,我会非常乐意发布代码片段或以任何方式澄清。
谢谢,
John
So right now I am working with a script that prompts for a date in this format YYYYMMDD and then it creates a folder in that same format. Then it goes through and copies PDFs to that folder. What I am looking to do is to automate this process by adding the script to Scheduled Tasks but in order for that to work I need to script to somehow check the date automatically and then create the folder in the format I need (YYYYMMDD) based on that day's date.
Only been working with VBS for a few months now and I was hoping someone could help give me a push in the right direction. I'd be more than happy to post code snippets or clarify in any way if I haven't been clear enough.
Thanks,
John
这篇关于用于根据日期创建文件夹的脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!