Category : OS/2 Files
Archive   : FLIST58.ZIP
Filename : FLCOPY.CMD

 
Output of file : FLCOPY.CMD contained in archive : FLIST58.ZIP
@echo off
rem This is an example of how to implement a feature in FLIST that is not
rem directly supported. The function that we are implementing is
rem 'Copy within same directory to a different file'. This CMD file also
rem demonstrates how to use TJD Software's MLINE program to ask if an
rem existing file may be overwritten.
rem
rem To tell FLIST to run this command when the '1' key is pressed do:
rem SET $FUSR1$=%COMSPEC% /c FLCOPY $FN.$FE $P
rem
if .%1 == . GOTO Usage
if .%2 == . GOTO Usage
if .%3 == . GOTO Doit
GOTO Usage
:Doit
if EXIST %2 GOTO Prompt
GOTO DOCOPY
:Prompt
mline "File %2 already exists - Overwrite it?" Yes No
if ERRORLEVEL 1 GOTO End
:DOCOPY
copy %1 %2
GOTO End
:Usage
echo Usage is:
echo %0 file1 file2
rem Run MLINE with no arguments to set ERRORLEVEL
mline
:End


  3 Responses to “Category : OS/2 Files
Archive   : FLIST58.ZIP
Filename : FLCOPY.CMD

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/