Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Auto-Launching Batch File In Self-Extractor (Can I Do It?)

310 views
Skip to first unread message

Wendell

unread,
Nov 16, 1996, 3:00:00 AM11/16/96
to

How do you cause a *.BAT file placed in a
self-extracting (ZIP, etc.) file to autorun (launch) on extraction?

This is probably a stupid question, but I know practically
nothing about programming (obviously).
thanks in advance.

Charles Mosher

unread,
Nov 18, 1996, 3:00:00 AM11/18/96
to

Wendell (not-...@earth.net) wrote:
: How do you cause a *.BAT file placed in a

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


SMit...@ix.netcom.com

unread,
Nov 20, 1996, 3:00:00 AM11/20/96
to

not-...@earth.net (Wendell) wrote:

:::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

Robert Cooper

unread,
Nov 20, 1996, 3:00:00 AM11/20/96
to

>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

Tom van Herwaarden

unread,
Nov 22, 1996, 3:00:00 AM11/22/96
to

> :::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

Robert Worcester

unread,
Nov 28, 1996, 3:00:00 AM11/28/96
to

Might be a good idea to rename dos files like format and fdisk to
something different, such as format!.com, etc......

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


NWHC

unread,
Nov 29, 1996, 3:00:00 AM11/29/96
to

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:

0 new messages