Posted by Jim Guerber on January 12, 2005 at 17:48:47:
In Reply to: COSW Command Line switches posted by Bruno Biancucci on January 12, 2005 at 11:21:01:
Following is a little program that sends a couple of files and then quietly quits. It is important to execute the stop statement as well as the file control.
have fun:
clear
length 5.0 & local flags
length 80 & local remote$ host$ from$ to$ file$
flags = 1 + 2 + 64 + 2048
REMOTE$ = 'D:\COMET\ISC'
HOST$ = 'D:\COMET\ISCHOOL'
file$ = 'cal'
gosub sendit
file$ = 'cal.i00'
gosub sendit
file(0) ctl='@fe0000@'
stop
sendit:
from$ = remote$ + '\' + file$
to$ = host$ + '\' + file$
print (copyfile=from$ to$ flags)
return