用于根据日期创建文件夹的脚本 [英] Script to create folders based on date

查看:203
本文介绍了用于根据日期创建文件夹的脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以现在我正在使用一个脚本,提示输入YYYYMMDD格式的日期,然后以相同的格式创建一个文件夹。然后它会浏览并将PDF复制到该文件夹​​。  我要做的是通过将脚本添加到计划任务来自动执行此流程
,但为了使其工作,我需要脚本以某种方式自动检查日期,然后根据当天的日期以我需要的格式(YYYYMMDD)创建文件夹。 


现在只使用VBS几个月了我希望有人可以帮助我推动正确的方向。如果我还不够清楚,我会非常乐意发布代码片段或以任何方式澄清。


谢谢,


 


John

解决方案


对于VbScript问题,请尝试此论坛:>>


http://www.visualbasicscript。 com /


 


此论坛"通常"适用于Vb.Net问题,抱歉。


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

解决方案

Hi,

For VbScript questions please try this forum:>>

http://www.visualbasicscript.com/

 

This forum is 'usually' intended for Vb.Net questions, sorry.


这篇关于用于根据日期创建文件夹的脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆