Date: Sun, 07 Jul 2002 08:19:05 -0400 From: madodelatptdprolog.net Subject: [VOICENWS] SW: Sequential Utilities From: "Don Hawkinson" I have made a set of sequential copy and rename utilities available for download from my web page at: http://www.cottagesoft.com/~dwhawk/other.html SEQREN.EXE a sequential rename utility SEQCPY.EXE a sequential copy and rename utility RENMV.EXE a combination rename & move utility These three programs can be used to automate the backup of critical files at boot time or before starting a task that would destroy or modify critical files. They are not intended to replace a system backup to tape or other removable media. SEQREN gets the rename parameters from a file and applies them to file names received from a pipe, redirection, or to a single file specified on the command line. The utility will check the destination file name for a conflict with an existing file and increment the sequence number until there is not a conflict. Since the utility renames the source file, the source and destination must be on the same drive, but they may be in different directories. The resulting actions are logged in the file RESULTS.LOG in a format that makes it easy to restore the original file. Along with the sequential rename utility, there is also a combination rename and move utility. It is like the OS/2 REN utility in that it does not work between drives. But unlike REN , the source and destination files may be in different directories. SEQCPY gets the rename parameters from a file and applies them to file names received from a pipe, redirection, or to a single file specified on the command line. The utility will check the destination file name for a conflict with an existing file and increment the sequence number until there is not a conflict. The souce and destination may be on different drives. The resulting actions are logged in the file RESULTS.LOG in a format that makes it easy to restore the original file. The parameter file HOW.TO has 4 lines 1: basename 2: extent 3: starting sequence number 4: OK - without this line the utility operates in test mode and only writes to the log file RESULTS.LOG Usage example: The working name of the utility is seqren.exe. The curent directory is m:\pipe_rename The contents of the parmeters file HOW.TO is: source .c 99 OK files to be renamed located in the root of drive M: M:\c.cc M:\C_DEL.cc M:\seqren.cc M:\pipeout.cc The command: dir /F m:\*.cc |seqren Files now located in the m:\pipe_rename directory M:\pipe_rename\source099.c M:\pipe_rename\source100.c M:\pipe_rename\source101.c M:\pipe_rename\source102.c Contents of the file RESULTS.LOG renmv source099.c M:\c.cc renmv source100.c M:\C_DEL.cc renmv source101.c M:\seqren.cc renmv source102.c M:\pipeout.cc The log file contains the commands to undo the action. The utility renmv.exe does a rename or combination move & rename. Edit RESULTS.LOG and paste the appropriate lines to a CMD file and execute it. In addition to the sequential rename utility, I have created a sequential copy utility (seqcpy.exe). It gets the copy parameters from a file and applies them to file names received from a pipe or redirection. The utility will check the destination file name for a conflict with an existing file and increment the sequence number until there is not a conflict. The resulting actions are logged in the file RESULTS.LOG in a format that makes it easy to restore the original file. It works very much like the seqren utility, except that the original source file still exists after it has been copied. Note: These programs do not accept wild cards and only renmv.exe will accept source and destination file names from the command line. NOTE: I have tested these programs on my pc under Warp 3 and they worked as expected. However, I suggest that you create a couple of test directories and copy some files into one of them for testing. That way you can verify that the programs work as expected on your pc. Don Hawkinson , author of CCA, DH-Grep-PM, PMStripper, Pastry Box, and DH_ClipSave/2 http://www.cottagesoft.com/~dwhawk dwhawkatintcon.net * * July Shareware Special * * http://www.cottagesoft.com/~dwhawk/july.html -- To unsubscribe yourself from this list, send the following message to majormajoratos2voice.org unsubscribe news end If you have an announcement you would like posted to the VOICE News list, please send it to submitatos2voice.org. Please include a valid reply address and a real contact name. If you wish to comment on this post, please reply to feedbackatos2voice.org