| >DrawLink
set Input$File %0
set Output$File %1

| Echo messages
echo Linking input file "<Input$File>" to output file "<Output$File>"
echo on <Sys$Date> <Sys$Year>.<Sys$Time>

| Check for wildcards
if "<Input$File>" RIGHT 1="*" then error Wild cards
if "<Output$File>" RIGHT 1="*" then error Wild cards

| Link file
print <Obey$Dir>.TA_Link { > <Output$File> }
echo \; DrawLinked on <Sys$Date> <Sys$Year>.<Sys$Time> { >> <Output$File> }
echo \; Input file "<Input$File>" { >> <Output$File> }
print <Input$File> { >> <Output$File> }
print <Obey$Dir>.TA_LinkE { >> <Output$File> }

| Set filetype
settype <Output$File> text
