home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 8 Other
/
08-Other.zip
/
apmt34.zip
/
MOVEFLDR.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-07-01
|
2KB
|
51 lines
/******************************************************************/
/* This program Moves all items from OldFolder to NewFolder */
/* Both folders are expected to be visible on the Desktop */
/******************************************************************/
Trace off
Call RxFuncAdd 'APMTLoadFuncs','APMTEXT','APMTLoadFuncs'
Call APMTLoadFuncs
NewFolder = "NEW Folder" /* Edit this */
OldFolder = "OLD Folder" /* And this */
rc = INIT_SESSION() ; call logit
if rc \= 0 then signal errorexit
signal on halt name close
rc = SELECT_WINDOW("Desktop") ; call logit
rc = CONTAINER_SET_POINTER(1,OldFolder) ; call logit
rc = MOUSE("DCLICK",1)
rc = SELECT_WINDOW(OldFolder||"*",50) ; call logit
rc = CONTAINER_QUERY_COUNT(1,ct) ; call logit
do ct
item = "#"||1
rc = CONTAINER_SET_POINTER(1,item) ; call logit
rc = MOUSE("DOWN",2) ; call logit
rc = SELECT_WINDOW("Desktop") ; call logit
rc = CONTAINER_SET_POINTER(1,NewFolder) ; call logit
rc = MOUSE("UP",2)
rc = SELECT_WINDOW(OldFolder||"*") ; call logit
rc = SET_FOCUS() ; call logit
end
rc = SELECT_WINDOW(OldFolder||"*") ; call logit
rc = SYSMENU_SELECT("Close") ; call logit
close:
rc = END_SESSION();
exit
/******************************************************************/
logit:
code=Strip(rc)
Parse Value Sourceline(sigl) With 'rc = ' function ';'
out = 'Return code' code 'from' function 'in line number' sigl
if code > 0 then do
say out
Say '---> 'apmtmsg
exit
end
return