|
-
Aug 9th, 2006, 10:47 AM
#1
Thread Starter
New Member
Changing Mass Filenames via VB6 and possibly Commandline
Hello
I have an original request. Actually, it is more of a request for help, since I am new at coding with VB6 and am not sure of what I'm doing. I recently found a commandline program that converts filenames in whichever folder you put the program in. For example:
file01
file02
file03
are contained in the folder. When the .exe is executed, the commandline opens and copys each file in the folder to a specific value and then places the newly copied files into another folder. so file01 would be copied, renamed to file04, and placed in the new folder. then file02 would be copied, renamed file05, and placed in the new folder. then file03 would be copied, renamed file06, and placed in the new folder. since there are literally 100s of files to copy (they're all bitmaps) it is very tedious to change and the commandline program contains errors and sometimes is incorrect. I am interesting in creating a program that will do the exact same thing, and I would fix the errors. If the only way to do this conversion is via the commandline, then I would also need help in creating this, since I probably have the wrong program. If the commandline program would help, I can post it, but I doubt it would. Yet again, I am new at programming, and appreciate any type of help. Thanks everyone!
-
Aug 9th, 2006, 02:17 PM
#2
Re: Changing Mass Filenames via VB6 and possibly Commandline
The first step is determining what the original filenames look like and the algorithm for changing the names. IOW, how do you generate "file04"? What is that name based on? (Read my tag lines - this is a perfect example.)
Once you know that, and the directory you want to move or copy them to, the program itself is trivial.
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
-
Aug 9th, 2006, 04:03 PM
#3
Thread Starter
New Member
Re: Changing Mass Filenames via VB6 and possibly Commandline
first off, thanks for such a quick response. Every filename begins with the word "pic" and then a 3 digit number.
so, for example:
pic001 -> pic004
pic002 -> pic009
pic003 -> pic002
pic004 -> pic003
there is no order to the changing, so its not like i can just say every filename change goes 3 up from the original. And for the new directory, the easiest way would be to just create a new folder in the director where the program is. so if the program lies in C:\program\namechanger that it would copy the files and put them in the folder C:\program\namechanger\new . Once again thank you and i hope this helped
EDIT: i have a basic list of which file converts to what, if that would help i could also post that.
Last edited by nickb611; Aug 9th, 2006 at 04:12 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|