home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Spezial
/
SPEZIAL2_97.zip
/
SPEZIAL2_97.iso
/
ANWEND
/
TOOLS
/
MC3543B
/
install.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-05-11
|
1KB
|
40 lines
/* REXX program to create a WPS object for GNU Midnight Commander */
/* Alexander Dong: 11 May 1997 */
'cls'
say 'Creating GNU Midnight Commander icon for desktop.'
Call rxfuncadd sysloadfuncs, rexxutil, sysloadfuncs
Call sysloadfuncs
fullpath=Directory()
if right(fullpath, 1) \= "\" then do
fullpath = fullpath || "\"
end
drop res.
call SysFileTree fullpath || "MC.EXE", res, "OF"
if res.1 = "RES.1" then do
say "Hmm, I can not find MC.EXE here...."
say "I am afraid I will have to stop."
say
say "Please make sure to unzip MC into this directory and"
say "re-run this program."
exit
end
else do
Call SysCreateObject 'WPProgram','Midnight Commander','<WP_DESKTOP>','CCVIEW=YES;EXENAME='||fullpath||'\MC.EXE;PROGTYPE=OS2;'
Say "Okay, I have created a desktop icon for Midnight Commander."
end
say "If you add this directory into your PATH variable in Config.Sys,"
say "you can call MC everywhere."
say "You can also call the nc.cmd, this batch file will change the"
say "working directory to the last one used in MC"
say "Thanks for your interest in GNU Midnight Commander."
exit