This is probably a stupid question, but I know practically
nothing about programming (obviously).
thanks in advance.
You launch PKUNZIP from a batch file, and after PKUNZIP is done, CALL your
newly unzipped batch file.
You may want to SMARTDRV /C in between.
--
Charles Mosher
ratr...@svpal.org
:::How do you cause a *.BAT file placed in a
:::self-extracting (ZIP, etc.) file to autorun (launch) on extraction?
:::
W O W! Are you looking for trouble. Imagine putting a destructive self
launching batch file (format...., del.. etc) in a compressed file. However,
I do believe there is something similar to what you are looking for...use
the LHA compressor. I believe the file must be named !.bat and put on the
extractor command line as a parameter. I could be wrong about that, hmmmm.
Let me know how you make out.
---
Stanley Mitnick
SMit...@ix.netcom.com
>How do you cause a *.BAT file placed in a
>self-extracting (ZIP, etc.) file to autorun (launch) on extraction?
As far as I know, this is not possible. I think it would be dangerous to
make this possible... imagine getting a file from the 'Net, unzipping it,
and finding you now have a formatted hard drive!!!
Icabod
> :::How do you cause a *.BAT file placed in a
> :::self-extracting (ZIP, etc.) file to autorun (launch) on
> extraction? :::
>> W O W! Are you looking for trouble. Imagine putting a destructive
>> self launching batch file (format...., del.. etc) in a compressed
>> file. However, I do believe there is something similar to what you
>> are looking for...use the LHA compressor. I believe the file must
ARJ has a nice b parameter for running an executable that is in the
archive. Guess you are right about the destructive part....
==== arj.doc ====
b: execute Batch or DOS command
The ARJ b command allows a user to execute a DOS command on
selected files in an archive. The ARJ b command will prompt for a
DOS command string to execute per selected file. By default ARJ
will extract the selected files to the filename ARJTEMP.$$$. This
filename can be changed with the "-jw" option. The base directory
option is ignored by the ARJ b command. The output file will be
deleted by ARJ after the DOS command is executed.
Examples: ARJ b archive
ARJ b archive file.exe -jwtemp\tempfile
This option can substitute for a simple extract and run command
where the file to be extracted is an executable. You would specify
a temporary executable name as the output name and use that name as
the DOS command to be executed.
Example: ARJ b archive file.exe -jwTEMP.EXE
TEMP arguments
You can supply the DOS command string on the command line with
the "-jq" option. Switch options which have embedded blanks
must be enclosed by double quote marks.
Examples: ARJ b archive file.exe -jwTEMP.EXE -jqTEMP
ARJ b archive *.c "-jqgrep text ARJTEMP.$$$"
===============
Grtx,
Tom
E-mail: to...@edc.xs4all.nl
rj...@ecs.soton.ac.uk (Robert Cooper) wrote:
>>How do you cause a *.BAT file placed in a
>>self-extracting (ZIP, etc.) file to autorun (launch) on extraction?
>As far as I know, this is not possible. I think it would be dangerous to
>make this possible... imagine getting a file from the 'Net, unzipping it,
>and finding you now have a formatted hard drive!!!
> Icabod
Robert Worcester
Roos...@airmail.net
I believe LHARC (Yoshi) has this capability, but a command line
parameter is required to activate the script when the file is
decompressed.Robert Worcester wrote:
James Brier
North Warks. & Hinckley CollegeRobert Worcester wrote: