home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1995 November
/
PCWK1195.iso
/
inne
/
podstawy
/
dos
/
4dos
/
4uzytki
/
mov_numb.exe
/
MOV&NUMB.DOC
< prev
Wrap
Text File
|
1993-06-02
|
1KB
|
43 lines
Move and Number
A 4Dos Batch File to save and renumber files.
by John D. Cook
June 2, 1993
USEAGE: mov&numb filename[number].txt savedirectory
mov&numb is for storing files of the same subject together in a storage
directory with sequentially numbered filenames. All files in current and
target directories beginning with "filename" and having no number will be
renamed to "filename.bad" as to not interfere with the number searching
process. Mov&numb works by searching for the highest numbered file in the
storage directory, returning to the current directory, and moving all files in
the current directory of the correct format to the storage directory and
simultaniously sequentially renumbering them after the current files.
Example:
Current direcory is \download and storage directory is \info\robot.
\download contains robot1.txt and robot2.txt and \info\robot contains
files up to robot48.txt.
mov&numb robot \info\robot
will move robot1.txt to \info\robot\robot49.txt and move robot2.txt to
\info\robot\robot50.txt
I use this batch file as part of my automatic download program to store Usenet
news articles in sequentally numbered files.