Computing.Net > Forums > Programming > VB script to put time and date on

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

VB script to put time and date on

Reply to Message Icon

Name: Headers
Date: March 16, 2009 at 16:55:04 Pacific
OS: Windows XP, Server 2003
Subcategory: General
Comment:

I am looking for a vb script to put a time and date stamp on a folder I am moving data to. I want it to create the folder with a time and date stamp and then copy the file to the folder. Or folder and subsequent subfolder.



Sponsored Link
Ads by Google

Response Number 1
Name: Razor2.3
Date: March 17, 2009 at 09:48:28 Pacific
Reply:

So make a folder with the current date/time?

CreateObject("Scripting.FileSystemObject").CreateFolder Replace(Replace(Now, "/", "."), ":", ".")


0

Response Number 2
Name: Headers
Date: March 17, 2009 at 10:41:11 Pacific
Reply:

Yes. I need to create this folder on a daily basis as I am moving files everyday. So I would like it to create the folder everyday with that days date in case I need to go back and search. I most of the script done. I am currently just coping to one big folder, but I want sub folders underneath that one.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: VB script to put time and date on

VBS script to delete files www.computing.net/answers/programming/vbs-script-to-delete-files/14805.html

VB script to change favorites path www.computing.net/answers/programming/vb-script-to-change-favorites-path/13780.html

VB Script to remomve CR and LF frm a CSV file www.computing.net/answers/programming/vb-script-to-remomve-cr-and-lf-frm-a-csv-file/18999.html