echo OFF
CLS
echo *	Installation of COPY II PC V6.0 files.
echo *

if X%1 not == X goto oops1
if not exist NOGUARD.EXE goto oops2

echo *	The COPY II PC files will be copied to the
echo *	path %1. The sub-directory will be created
echo *	if it does not exist. 
echo *
echo *	If the subdirectory already exists on your hard
echo *	drive, you may see the message "Directory already
echo *	exists" or "Unable to create directory."
echo *	These are error messages generated by DOS.
echo *	It does not affect the process of copying
echo *	the Copy II PC files into that subdirectory.
echo *
echo *	Please note: Older versions of NOGUARD will be
echo *	renamed to NOGUARD.OLD.
echo *
echo *
if not exist %1	  	 MD %1
if exist %1\NOGUARD.COM    REN %1\NOGUARD.COM *.OLD
echo *

COPY *.* %1

echo *
echo *	All Copy II PC files have been successfully
echo * 	copied to the specified path.
echo *
echo *
goto end

:oops1
echo *	The path must be specified. For example,
echo *	SETUP C:\C2PC.  If the subdirectory C2PC does not
echo *	exist, the installation process will create it.
echo *	(You must specify your hard drive in the path.)
echo *	
echo *	If the subdirectory already exists on your hard
echo *	drive, you may see the message "Directory already
echo *	exists" or "Unable to create directory."
echo *	These are error messages generated by DOS.
echo *	It does not affect the process of copying
echo *	the Copy II PC files into that subdirectory.
echo *
echo *
goto end

:oops2
echo *	The current drive must contain the Copy II PC disk.
echo *	For example, the prompt should be "A:>" if the disk
echo *	is in drive A. Type "A:" then press ENTER.
echo *	Type the SETUP command with the desired drive and path.
echo *
echo *
:end
