Renaming folder in VB script

September 18, 2009 at 04:52:14
Specs: Windows 2003
Hi,
I have a requirement of renaming an existing folder within another folder every time a new one is created in VB Script.

Ex:
Path: "D:\TPP\DV2\data\DOC\data_out\COURIER\20090918"
Folder by name "BundleDeliveryCustomerPSfiles" is present with in the datefolder(20090918)
If folder by this name exists then it is to be renamed to "Archive"
Please help me with this as i am new to VBscripting.


See More: Renaming folder in VB script

Report •


#1
September 18, 2009 at 06:15:20
If this were my task, I would do something like this:

http://tinyurl.com/nn424n


Report •

#2
September 18, 2009 at 06:37:07
Hi derby,
Thanks for the suggestion, but my requirement is to rename a folder not the file names present in the folder.
As in the example given earlier i need to rename the folder(BundleDeliveryCustomerPSfiles) present within the date folder("D:\TPP\DV2\data\DOC\data_out\COURIER\20090918")
to "Archive"

Please suggest a way forward on this...

Regards,
hemanth


Report •

#3
September 18, 2009 at 07:50:21
Sorry, my error...

http://tinyurl.com/krucg6


Report •

Related Solutions


Ask Question