home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
dragen1.zip
/
DRAGSTRT.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
2000-03-18
|
2KB
|
74 lines
/* Drag and Drop script, copyright (c) 2000, Keith Cotroneo */
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
call SysLoadFuncs
parse source operatingsystem commandtype sourcefilename
rc=SysFileDelete(dflag)
If rc \= 0 then do
Say 'Dflag not deleted - rc='||rc
end /* do */
rc=SysFileDelete(dtemp)
If rc \= 0 then do
Say 'Dtemp not deleted - rc='||rc
end /* do */
ftppath=filespec('path',sourcefilename)
ftppath=filespec('drive',sourcefilename)||ftppath
ftporg=ftppath
ftppath=ftppath||dtemp
parse arg string
say "args= "STRING
'Copy '||string||' '||ftppath
if rc \= 0 then do
say 'Copy of '||string||' to '||ftppath||' failed!'
end
fname=FILESPEC("name",STRING)
if right(fname,1)='"' then
fname=left(fname,(length(fname)-1))
say fname
if length(fname) > 0 then do
rc=stream(ftppath,'c','open')
if rc \= "READY:" then do
say 'Could not open '||ftppath||' !'
end
currentalias=linein(ftppath)
say currentalias
sortit=linein(ftppath)
say sortit
regetcheck=linein(ftppath)
say regetcheck
proxycheck=linein(ftppath)
say proxycheck
asciicheck=linein(ftppath)
say asciicheck
extended=linein(ftppath)
say extended
colcheck=linein(ftppath)
say colcheck
port=linein(ftppath)
say port
rc=stream(ftppath,'c','close')
rc=stream('dflag','c','open')
if rc \= "READY:" then do
say 'Could not open Dflag !'
end
call lineout "dflag",fname
call lineout "dflag",currentalias
call lineout "dflag",sortit
call lineout "dflag",regetcheck
call lineout "dflag",proxycheck
call lineout "dflag",asciicheck
call lineout "dflag",extended
call lineout "dflag",colcheck
call lineout "dflag",port
rc=stream('dflag','c','close')
end
'Start "DragenDrop" '||ftporg||'dragen'
exit
getstr="start "ftporg"\"dragen
getstr