ts@uwasa.fi (Timo Salmi LASK) (01/16/90)
Tue 16-Jan-90: I have still been thinking about batch files and interesting tricks to do with them, and I therefore publish a new upgrade of my botch :-) collection in a rapid succession after the last update. The upgrade is (/pc/ts/)tsbat14.arc, and it will be available by anonymous ftp at least from chyde.uwasa.fi, Simtel20, and by BBS download or file request from Micro Maniacs Opus 2:515/1 telephone 358-0-425966. Two new utilities are included. The first is delpath.bat, which removes a directory from the path variable. This was a really tricky one, and my solution (contrary to the other batches in the collection) requires MsDos version 3.30 because it uses the call command. I have since seen another solution in the PC-Magazine (Vol 8 No 21) but mine uses a somewhat different technique, and should be clearer because even I can understand how mine works :-). The second new batch is deldir.bat for deleting the files from a directory and then removing the directory. This is really trivial, but I needed it myself. I have tried to include reasonable number of safeguards within this batch. ................................................................... Prof. Timo Salmi (Moderating at anon. ftp site 128.214.12.3) School of Business Studies, University of Vaasa, SF-65101, Finland Internet: ts@chyde.uwasa.fi Funet: vakk::salmi Bitnet: salmi@finfun TSBAT14.ARC Batch file collection, T.Salmi Filename Comment Date Time CRC -------- -------------------------------- ---- ---- --- ADDPATH.BAT Append directories to the path 01-14-90 11:09:58 A69D APATH-OM.BAT Otto Makela's version of addpath 01-13-90 12:32:30 BB69 ARC2ZIP.BAT Single .arc to .zip with comment 01-10-90 22:47:08 9D1A C.BAT Lazy changing of directory 01-14-90 11:20:48 9395 DELDIR.BAT Remove directory and its files 01-15-90 20:06:52 66A0 DELPATH.BAT Delete a directory from the path 01-16-90 12:00:34 EBC6 ENTER.TXT To substitute pressing enter 10-30-89 09:24:46 498B LINK1.BAT How to link batch files together 10-31-89 14:26:14 5946 LINK2.BAT Batch link demo's second file 11-15-89 12:23:24 3048 LOCATE.BAT Wildcard file find 01-14-90 11:22:56 3A11 LOGRUN.BAT Log program usage & time and run 01-14-90 11:46:46 DFF9 MAKESURE.BAT Simple command.com virus warning 01-14-90 11:54:56 4B0F POPDIRE.BAT Restore (pop) saved directory 01-14-90 11:57:14 3AF7 POPPATH.BAT Restore the saved path 01-14-90 11:59:44 5655 PUSHDIRE.BAT Non-resident push directory 01-14-90 11:58:18 7D9C PUSHPATH.BAT Save the current path 01-14-90 11:58:44 BB6D RUN.BAT Testing for viruses 01-14-90 12:11:24 EB7D SCOPY.BAT Copy a file with a single device 01-14-90 12:58:06 4C79 SETCOM.BAT Secure your command.com 10-28-89 19:41:08 B488 SETPUSHD.EXE Program for nonresident pushdire 01-13-90 17:33:42 2BBD SETVAR.BAT Sets a variable for delpath.bat 01-15-90 22:19:38 875B STAR.TXT Auxiliary separator for logging 10-30-89 09:27:04 655C TSBAT.INF Document 01-16-90 12:07:02 6255 TSBAT.NWS News concerning this package 01-16-90 13:49:20 B5EC TSPROG.INF List of PD programs from T.Salmi 10-28-89 16:59:34 D436 VAASA.INF Info: Finland, Vaasa, U of Vaasa 06-23-89 08:30:20 88AB WHERE.BAT Generic searchstring fname find 01-14-90 12:02:16 13E3 ZIPDATE.BAT Equate .zip date to latest file 01-10-90 22:49:00 F131 ---- ------ ------ ----- 0028 39573 24683 38%