Forum Home
Press F1
 
Thread ID: 40872 2003-12-22 07:47:00 Small Problem - Very Unproductive! cold_fu5ion (3438) Press F1
Post ID Timestamp Content User
202157 2003-12-22 07:47:00 Hi Everyone,
Well it turns out that Hamstar is right, Microsoft has some sort of anti-productivity code in their software. I have about 200 .png files in one folder that have the names Data_1.png Data_2.png ect. These images are in order and they way that they appear in a folder is.....data_1, data_10, data_100, data_101. I need these files no appear in the right order as finding the 3 states of a button can end up being very difficult.
Does anyone know of a registry setting, program, or option that would let me do this.
Hope that I explained this alright.
Thanks
cold_fu5ion (3438)
202158 2003-12-22 07:58:00 Hi CF I await with interest a quick and easy fix for that. I finally bit the bullet with mine and manually renamed the lot as 001, 002, 003 etc. Scouse (83)
202159 2003-12-22 08:14:00 I feel your pain, but the files that I'm using are in a certain order and have their name for a reason (not my reason) so inorder for me to put one of the files back into an exe I need the names to be the same. extracting massive amounts of image files and renaming them all is not an option. cold_fu5ion (3438)
202160 2003-12-22 08:15:00 The files would have to be renamed to have the numerical order. You should be able to find a program to do it easy enough. Try searching Google with keywords such as "batch rename file". parry (27)
202161 2003-12-22 08:32:00 Irfanview (http://www.irfanview.com) has a batch rename function. wotz (335)
202162 2003-12-22 08:40:00 thanks for the reply, but I dont want to rename the files because I am importing them into an exe, they need to have their original name. cold_fu5ion (3438)
202163 2003-12-22 08:45:00 import a list of files into something like Excel, sort them numerically, and create hyperlinks to the files from excel so that it then works much the same way explorer would to open files, but you can list them however you want.

Mike.
Mike (15)
202164 2003-12-22 08:46:00 Are you using WinXP?

Have a look here and see whether this might help: Microsoft Knowledge Base Article - 319827 (support.microsoft.com)
Jen C (20)
202165 2003-12-22 09:09:00 I just read the microsoft article, and it is exactly what I'm looking for. I wouldn't touch win XP (and its shiny buttons) with a 10 foot ps/2 usb adaptor. I'll googlw it now that I actuall know what I'm looking for.
Thanks!
cold_fu5ion (3438)
202166 2003-12-22 10:08:00 >Hi Everyone,
>Well it turns out that Hamstar is right, Microsoft has some sort of anti->productivity code in their software.

First of all I don't think that Microsoft is to blame here. I was using computers before Microsoft happened. I used to write SORT programs in COBOL for a Burroughs 3500. Later I used Microsoft software like MSDos 3.3. Dates in particular come to mind and I had to use the convention yyyymmdd to get things sorted in the way I wanted. Today would be entered as 20031222. What you have here is a problem with sorting.

When it comes to sorting then Data_1.png may well be the first file but the ASCII code will say to sort on name from left to right. Data_1.png will be less than Data_2.png but Data_2.png will be greater than Data_100.png

Renaming will not be difficult but you say that is not an option. I think from reading you need to keep the files names as they are. If this is a program you may consider using a string function and load the pictures into an array


I have about 200 .png files in one >folder that have the names Data_1.png Data_2.png ect. These images >are in order and they way that they appear in a folder is.....data_1, >data_10, data_100, data_101. I need these files no appear in the right >order as finding the 3 states of a button can end up being very difficult.
>Does anyone know of a registry setting, program, or option that would >let me do this.
>Hope that I explained this alright.
>Thanks
Elephant (599)
1 2