Forum Moderators: phranque
What I mean for example is:
Say I have a folder called "beatles" and within this folder are songs by them, such as "daytripper.txt"
I would need this file to be renamed beatles-daytripper.txt
And so on, for every file within it, like beatles-eight_days_a_week.txt
Then I would also have to do this for every band, (there are many) such as doors-light_my_fire.txt
Anyone know how to do this? Is this possible?
There's about 1000 bands (folders) and 20,000 songs within these folders, so it would take forever to do it by hand!
FileSystemObject and loop through all of the files in the directory and do whatever you want with them - copy, move, delete, whatever. You can't technically "rename" through FSO, but you CAN do a "move" and set the target name of the file you're moving to a different one.
You could set the directory name as "stringa" and the filename as "stringb" and do something like this:
FSO.MoveFile stringb, stringa & "_" & stringb
Check out this page for a tutorial of FSO:
[sqldts.com...]
I need it to be able to take the name of what folder it's in and add it to the beginning of the file name...
Like this for example...
C:\Windows\Desktop\bands\beatles\yesterday.txt
and the end result being:
C:\Windows\Desktop\bands\beatles\beatles-yesterday.txt
See how it takes the name of the last folder it's in and add's it to the beginning of the file name?
digitalv, do you think a program can be written to do that? Or anyone know of maybe any other existing programs that can do that?
According to some of the reviews on download.com, the newest version may have fewer options. I don't know why it would though.
That was no doubt the best feature of version 1.0 and they took it out till they could add some more to the SW and then have a demo w/o the best feature included so that you would have to purchase the SW in order to get the best feature. (not that I have every seen that before)
Actually this is unique, I had installed it on my old computer, but when I found the network drive it was on, I double-clicked on it with my XP machine and it loaded. Because it is very small for a Windows program, I'll bet there are no activeX controls. It does come with an old version of foundation class, (MFC42.DLL), though and msvcrt.dll both in the application's folder. I just wonder, and It’s been a long time since I’ve seen it happen, if I could just send you the 5 files, (2 of them text files, the 2 mentioned above and the applications exe file), that are all installed into the application’s folder, if it would work on your machine? Since it is shareware, it would be legal and above board.