#40739 - 2003-05-26 04:38 AM
Batch renaming of files.
|
Greg Hains
Fresh Scripter
Registered: 2001-11-22
Posts: 14
Loc: Alice Springs, Australia
|
[Moderator (Sealeopard): Moved thread from 'Scripts' to 'Starters' forum due to lack of script in body of post]
Hi,
I am looking for somebody to assist me with the authoring of several batch files using Kix. Whilst I am a batch file programmer from way back, many of my files do not work under the command prompt of WinXP. Whilst I do not expect anybody to do a whole heap of work for me free, I hope that this challenge would benefit others in this forum from the script generated. If pushed, I am appy to pay the author for this work.
There are several scripts I need, but would like to make contact with somebody prepared to work with me on creating these tools. If anybody is able to help me, please contact me either trough this forum or directly on greg@hainsnet.com
Many thanks, Greg Hains [ 26. May 2003, 17:34: Message edited by: sealeopard ]
|
|
Top
|
|
|
|
#40740 - 2003-05-26 05:00 AM
Re: Batch renaming of files.
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Welcome to the forum.
We can absolutely help you. If the work get to be too great for the board I or someone else may be willing to assist you further.
We will need to see what you are currently doing and have a description of the goals you wish to attain.
|
|
Top
|
|
|
|
#40742 - 2003-05-27 02:55 AM
Re: Batch renaming of files.
|
Greg Hains
Fresh Scripter
Registered: 2001-11-22
Posts: 14
Loc: Alice Springs, Australia
|
Thanks for responding.
My scenario is that I have many thousands of clipart files, and I need to have them named according to a particular naming convention.. They are listed in main directories of 0100, 0200, 0300 etc. Beneath this are directories such as 0101, 0102, 0201 etc. I want a script (or routine) that I can parse to that will allow me to rename all files in that directory to a particular format - preferably only renaming the non-conforming files so that the process is quicker. The routing I used before noe was called SEQ.COM and I parsed info like this: SEQ c:\clipart\0100 0100 0000 The first parameter was the directory and the second was the mask for the file name. The third was the starting number, but I am using four digits of hex starting ot 0000. eg In c:\clipart\0100 is many files with the name of 0100_0000.jpg, 0100_01.jpg... 0100_0bcd.jpg etc - the name being a sequential 4-digit hex number according to the same directory name. The mask (of the filename) doesnt need to be set in the parameters, but can be coded directly into the routine as it wont change much.
If possible, I'd like to have an option where it was verbose - showing me how many files it had to rename and how far through it was - detailed progress, but this is less important. I was thinking of a switch
This is the first of several routines I would like to use, and as previously discussed, will be happy to pay somebody to write them for me, or contribute the money to the authors of Kixtart.
Please advise. Greg Hains
PS: Thanks Lonkero -very helpful.
|
|
Top
|
|
|
|
#40744 - 2003-05-27 03:28 AM
Re: Batch renaming of files.
|
Greg Hains
Fresh Scripter
Registered: 2001-11-22
Posts: 14
Loc: Alice Springs, Australia
|
Thanks for that tip, but Im looking to do it through a batch file/script - dont want GUI - unless it has a good batch mode. Cheers, Greg
|
|
Top
|
|
|
|
#40745 - 2003-05-27 03:48 AM
Re: Batch renaming of files.
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
From what you say above, there is no relationship between the current file name and the new file name and that there may be files already in existence with the correctly formed file name. Is this the case?
Given a little time, I think that I could whip up a compiled Perl program would make short work of this.
We can also put together something in KiXtart, but I think that the regular expression engine and hash support would be a benefit.
|
|
Top
|
|
|
|
#40746 - 2003-05-27 03:56 AM
Re: Batch renaming of files.
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11634
Loc: Space
|
Greg,
Not saying that Howard can't whip something up in either Perl or KiXtart, but this program is/will be much more powerful unless Howard works on it for weeks to try and come up with the same type of features.
Please take the time to REVIEW the many features/options this program has.
It even has REVIEW before doing the rename so you know what or how it will turn out. Has UNDO as well. All this for FREE
I Love KiXtart, but some programs are much better for given tasks. Using KiXtart just to see if you can make it work for LEARNING would be a different story. But if it is an actual task to accomplish, I think this would at least warrant a FREE DOWNLOAD and give it a try.
http://www.1-4a.com/rename/rename-features.htm
|
|
Top
|
|
|
|
#40747 - 2003-05-27 08:24 AM
Re: Batch renaming of files.
|
Greg Hains
Fresh Scripter
Registered: 2001-11-22
Posts: 14
Loc: Alice Springs, Australia
|
Hi.
Ive checked the RENAME tool - I must say that it is quite comprehensive and quite powerful, but does not allow me to do what I want it to do. Perl script is OK, but can I call it from a batch file under WinXP? Is there nothing that we can do in Kix? I see it only as an array manipulation job - reading the names into an array, changing the array contents, the renaming the files back. Its the middle bit I cant do.
Greg
|
|
Top
|
|
|
|
#40749 - 2003-06-13 02:32 AM
Re: Batch renaming of files.
|
Greg Hains
Fresh Scripter
Registered: 2001-11-22
Posts: 14
Loc: Alice Springs, Australia
|
Hi Lonkero.
Could you please point me in the direction of these tools that will allow me to achieve my requirements?
Please advise. Greg
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 1257 anonymous users online.
|
|
|