home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GEMini Atari
/
GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso
/
zip
/
utility
/
ren.lzh
/
RENAME.DOC
next >
Wrap
Text File
|
1991-09-11
|
3KB
|
75 lines
-------------------------------------------
Deluxe Rename program
written by Harry Dodgson with the
assistance of Mark O'Bryan for some
of the GEMDOS calls.
Copyright 1991, Harry Dodgson.
see bottom for distribution notice
-------------------------------------------
I wrote this program to rename groups of files
and to move them from place to place on my hard drive.
I wrote it in True Basic so it is a pretty large binary
program. There is no sigificant error handling in my
code, but it is robust anyway. Everything runs from
menu bars and dialogs. The status window is not
graceful or polished, just usable.
To use it, select the options from the menu bar
to get the file selector box for both the source and
destination directories/names. I have set it up to
work with both the TOS 1.4 file selector or the LGS
prompt syntax. There is also a menu option to arrange
the input file characters into a different order than
they started in.
As an example, you can rename a group of files
named: D:\INCOMING\DIG01TXT.ATA - DIG35TXT.ATA
into D:\SAVE\DIGEST01.UM - DIGEST35.UM
very easily.
When you choose "Set Old" from the menu bar, you
will get the file selector and can choose the path
specifier and file types, both ? and * being allowed.
The status window will list the files selected. You can
optionally choose "Set Shuffle" to rearrange the order
of characters. Then you choose "Set New" to choose the
destination for the files. When you select "Rename" from
the menu bar you are shown the list of files in the
status window and are allowed to cancel the current
operation. If you choose to continue, then the stus
window will show each file as it is being renamed.
If you don't type in anything for the filenames
in the source file selector, it will assume you want the
entire directory contents. If you don't select a
shuffle pattern it will leave the characters in the same
order they started in. If you leave the destination
filename blank, it will assume that you don't want to
force any characters into the destination filename.
To perform the example, you would select the
directory D:\INCOMING and use DIG??TXT.ATA as the source
specifier. Then set shuffle as 12300045.000 . Lastly
set the destination specifier for D:\SAVE and DIGEST*.UM
. Notice that I use 0s as place holders for don't care
entries in the shuffle specifier. The program will
properly expand and compress the filenames so that there
are not any invalid characters embedded in the filename.
It also doesn't really matter what order you set things
in. You can choose destination, shuffle, source if you
wish.
--------------------------------------------------------
This is a shareware program. If you like it,
send me what you think it is worth (say $5.00). If you
don't like it, send email to dodgson@coyote.cs.wmich.edu
with constructive criticism so I can improve it.
Harry Dodgson
2355 s. 9th St
Kalamazoo MI
49009-9405
--------------------------------------------------------