My Full Name
2003-08-13 22:42:51 UTC
Hello... kind of new to this WSH thing...
I have many files that my digital camera likes to label gibberish names
(Image001.jpg, etc.). What I'd like to do is, after I unload them from the
flash card to my computer, run a script that says For all .jpg files in
current folder, cycle through the names and rename the 'Image' part of the
original file name to something that I can understand ('lake-001',
'vacation2003-001', etc.).
I've been reading through the group for a little bit now and have tried the
renaming a particular folder or file to a specified new name, but how can
this be done automatically?
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.GetFile("C:\tester\test.txt").Name = "ItSeemsToWork.bat"
Is there a way to read the dir listing into an array, then edit that array,
then cycle back through the files renaming them to the new names? there
must be... I just don't know how.
I have many files that my digital camera likes to label gibberish names
(Image001.jpg, etc.). What I'd like to do is, after I unload them from the
flash card to my computer, run a script that says For all .jpg files in
current folder, cycle through the names and rename the 'Image' part of the
original file name to something that I can understand ('lake-001',
'vacation2003-001', etc.).
I've been reading through the group for a little bit now and have tried the
renaming a particular folder or file to a specified new name, but how can
this be done automatically?
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.GetFile("C:\tester\test.txt").Name = "ItSeemsToWork.bat"
Is there a way to read the dir listing into an array, then edit that array,
then cycle back through the files renaming them to the new names? there
must be... I just don't know how.