need help writing a vbscript to move files and rename them
Posted on 2008-10-02
Hello Experts -
I need help writing a vbscript to move and rename files from 2 network locations. Basically, on one network drive, I have various project numbers and within each project number, there is a set of the same directories.
etc. for about 100 different project numbers, the directories within the project numbers stays the same
I need to move all files in h:\project number\images to another location on the network - i:\projectdata\files\
Then, I want to rename the moved files on i:\projectdata\files\ with the year_month_projectnumber_nextnumberofimages.jpg
with the year and month being the date it was created.
So a file from h:\0000\images\test.tif will be moved to i:\projectdata\files\2008_10_0000_01.jpg and another file moved from h:\0001\images\file1.jpg will be moved to i:\projectdata\files\2008_10_0001_01.jpg
If it can be done using DOS commands, I am open to that also.
The environment is all Windows XP .
Thanks for your assistance. Any help will be greatly appreciated.