ZIP can be used to start another program either in the R:base window or in
it's own window. For example I like to use the file viewer that is named
list.com. To view a file I do R>zip list.com myfile.txt. For this to work
list.com has to be on my path or in the current directory.
Now the Launch command (only works in the windows version of R:base) can be
used to access a file using whatever program is associated with that file
type, so R>LAUNCH MYFILE.TXT will go out and look in the registery to see
what program is associated with the TXT file extension, and will start that
program (in this case probably Notepad) to view the file.
Ok, so why would want to use LAUNCH over ZIP, the reason is say you wanted
view a PDF file. Using ZIP you will need to either have Acrobat on your
path or need to know the full path for Acrobat on the machine. The problem
is that depending on the machine and version of Acrobat, the path may be
different. If you do LAUNCH myfile.pdf, you don't need to woory about what
version or where Acrobat is.
Again Launch only works in R:base for Windows. You can use explorer.exe in
the DOS version to kind of simulate the LAUNCH command
set var vtemp_file = 'myfile.txt'
out myfile.txt
write 'test'
out screen
if (cval('version system')) = 'DOS' then
-- dos version of R:base
zip command /c start explorer.exe &vtemp_file
else
-- windows
zip start explorer.exe &vtemp_file
-- OR YOU COULD USE
LAUNCE &VTEMP_FILE
endif
TROY SOSAMON
===== Original Message from [EMAIL PROTECTED] at 4/09/02 12:40 pm
>What is the diff between LAUNCH and ZIP? When would you prefer to use ZIP vs
>LAUNCH??
>
>TIA!
>
>Mike Sinclair
>
>================================================
>TO SEE MESSAGE POSTING GUIDELINES:
>Send a plain text email to [EMAIL PROTECTED]
>In the message body, put just two words: INTRO rbase-l
>================================================
>TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED]
>In the message body, put just two words: UNSUBSCRIBE rbase-l
>================================================
>TO SEARCH ARCHIVES:
>http://www.mail-archive.com/rbase-l%40sonetmail.com/
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: INTRO rbase-l
================================================
TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: UNSUBSCRIBE rbase-l
================================================
TO SEARCH ARCHIVES:
http://www.mail-archive.com/rbase-l%40sonetmail.com/