home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #6
/
amigamamagazinepolishissue1998.iso
/
coders
/
arexx
/
ep_pack
/
beta--ep_egdel.rexx
next >
Wrap
OS/2 REXX Batch file
|
1996-11-13
|
1KB
|
75 lines
/* Ask delete! V1.1 By Warp / GiGA Productions ©1996 */
Parse Arg Path
Title = "Ask delete! V1.1 By Warp/GiGA ©1996"
Call initlibs
Filename=Filepop(Path)
If exists(Filename) then do
Address Command "C:Delete "Filename" Force quiet"
Say Filename' has been deleted... Thank you...'
end
Initlibs:
a=0
If exists('LIBS:rexxreqtools.library') ~= 1 then do
Say 'Unable to open rexxreqtools.library'
a=1
end
If exists('LIBS:reqtools.library') ~= 1 then do
Say 'Unable to open reqtools.library'
a=1
end
if a=1 then do
say 'Unable to run:'
say Title
say 'Get the libraries listed above, you will need them/it...'
exit
end
call addlib("rexxreqtools.library", 0, -30, 0)
/* ^- Libs R found, now we link the reqtools.lib via rexxreqtools.lib */
Return
/*
** ^- Check for needed libraries, and react upon...
*/
Filepop: Procedure expose Title
Parse arg Path
Filename = rtfilerequest(Path,,Title,"_Delete mod!","rtfi_buffer=TRUE rtfi_height=495 rt_reqpos=reqpos_centerscr")
if rtresult=0 then do
return 0
end
else do
return Filename
end
/*
** ^- Pop a file req, and return the name of it...
*/