BATCH\EXAMPLE3.BAT ·
BAT ·
522 B ·
1990-05-14 ·
from WhatPC_Issue-12_Jul-1990
@ECHO OFF
REM **** This line is simply a note - it's not executed ****
REM
ECHO This example will copy this file (EXAMPLE3.BAT) to a file
ECHO called EX.WPC, it will then use the 'IF' command to check
ECHO if the file exists - it then deletes the file EX.WPC and
ECHO checks again.
PAUSE
ECHO Creating a file called EX.WPC
COPY EXAMPLE3.BAT EX.WPC
IF EXIST EX.WPC ECHO The file EX.WPC now exists!
DEL EX.WPC
ECHO Just deleted our test file, EX.WPC
IF NOT EXIST EX.WPC ECHO There, deleted.