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

vbs to exe

162 views
Skip to first unread message

gek

unread,
Sep 18, 2006, 4:55:56 AM9/18/06
to
how to paste as file into exe in visual basic 2005, or how to convert vbs to
exe but freeware.?


mayayana

unread,
Sep 18, 2006, 8:57:58 AM9/18/06
to
There's no such thing as converting a VBS to EXE.
It's interpreted script which can't be compiled
to native code. If you want to *make it look* like it's
an EXE (for free) you could do the following:

Go here and download the last free version of
Power Archiver:
http://www.sfsu.edu/ftp/win/utils/

Create a ZIP file with your script in it.

With the zip file open, go to Actions ->
Make .EXE file.

In the command line field put the name of your
script.

Check off all 4 boxes below.

You'll now have an EXE that when clicked
will dump your script into the TEMP folder
and run it.

Todd Vargo

unread,
Sep 18, 2006, 4:34:54 PM9/18/06
to

"gek" <gek...@poczta.fm> wrote in message
news:eelmui$a2q$1...@atlantis.news.tpi.pl...

> how to paste as file into exe in visual basic 2005, or how to convert vbs
to
> exe but freeware.?

Depending on purpose, another option is to encode the vbs to a vbe.
http://msdn.microsoft.com/scripting/

--
Todd Vargo
(Post questions to group only. Remove "z" to email personal messages)

Pete Delgado

unread,
Sep 19, 2006, 10:52:08 AM9/19/06
to

"gek" <gek...@poczta.fm> wrote in message
news:eelmui$a2q$1...@atlantis.news.tpi.pl...
> how to paste as file into exe in visual basic 2005, or how to convert vbs
> to exe but freeware.?

If your intention is to "hide" your code so that someone could not
deconstruct it, perhaps creating a Windows Script Host file and signing it
is the answer.

As far as converting to an exe in Visual Basic 2005, you would have to
rewrite your code using VB.NET in order to create an executable. If your
intent is to do as little coding as possible, you may be able to easily port
the source code to VB6 as many of the constructs are the same, however,
since VB.NET is a completely different language with different syntax, it
would be much more difficult.

-Pete


Fosco

unread,
Sep 20, 2006, 12:23:50 AM9/20/06
to
"Pete Delgado"
>
> "gek"

http://www.hide-folder.com/

ExeScript

Compile and convert batch files, VB and Java scripts to executable (.exe) files.

ExeScript is a program that converts batch files (.bat), Visual Basic and Java scripts to executable files (.exe) in
less than 30 seconds. It also protects contents of .bat, .vbs and .js files from being changed by other users
accidentally or intentionally. In addition, ExeScript hides contents of these files, so they cannot be viewed. This
means that all actions are executed by batch files, Visual Basic or Java scripts will remain unknown and cannot be used
to crack or reverse-engineer the file.


--
Fosco


mr_unreliable

unread,
Sep 20, 2006, 1:27:47 PM9/20/06
to
hi gek,

There was a recent posting found here for a "dotNet Wrapper" for
converting a script into an exe, but @#$%^&*(cuss words), I can't
google it up today.

I have attached the script that does this (or at least what resulted
after I got done messing around with it). The script was found on the
itPro website, and I apologize to the author for not giving credit.

Anyway, what the script does is to (crudely) encode your script, and
embed it into a dotNet assembly (an exe). My version of the script
uses an older version of the vbc command line compiler from the net
framework v1 that works on win98, but it will "probably" work with
the newer vbc command line complers which comes with the net
framework v2 (or later). As you probably already know, the net
framework is a free download from microsoft, if you don't have
it installed already.

When you run the exe again (or on another system), it will decode
the script, copy the result to win/temp, and then run it. No other
dependencies are necessary, other than having scripting installed
on the target machine.

There was some other way to get "vbs-to-exe", which was also posted
here some time ago, (by mikHar, I think). This was a commercial
package, which included an IDE for scripting, plus a script-to-exe
feature. As I recall, it cost about $100, so doesn't meet the o.p.'s
requirement for "free". However (another slew of cuss-words), I
couldn't google up a reference to this package either.

cheers, jw
____________________________________________________________

You got questions? WE GOT ANSWERS!!! ..(but,
no guarantee the answers will be applicable to the questions)

DotNetWrapper.vbs.txt

mr_unreliable

unread,
Sep 20, 2006, 1:48:11 PM9/20/06
to
Some other thoughts...

For one, you might find (as I do) that vb.Net is much more
difficult to program with than vbscript. In that case, you
could write your "wrapper" in autoIt or FSBL, both of which
have the capability of compiling to exe.

AutoIt3: http://www.autoitscript.com/autoit3/
FBSL: http://www.fbsl.net/phpbb2/index.php

And then (the ultimate heresy) you could avoid the "wrapper
approach" altogether, and just write your script DIRECTLY in
autoit or fbsl, and just compile directly to exe.

cheers, jw

"Crash" Dummy

unread,
Sep 20, 2006, 3:13:43 PM9/20/06
to
> ExeScript

> Compile and convert batch files, VB and Java scripts to executable (.exe)
files.

Does this create self contained executables? That is, will they run without the
user having the scripting engine installed?
--
Dudley


Fosco

unread,
Sep 20, 2006, 10:10:44 PM9/20/06
to
""Crash" Dummy"

I don't have tried it .. I use Autoit3 for this kind of stuff

--
Fosco


Joe Reynolds

unread,
Sep 25, 2006, 4:20:07 PM9/25/06
to
or, just use VB6 and write a REAL exe and we dont have to have this
conversation anymore

:)


"mr_unreliable" <kindlyReply...@notmail.com> wrote in message
news:ezIyrwN3...@TK2MSFTNGP03.phx.gbl...

mr_unreliable

unread,
Sep 26, 2006, 3:37:22 PM9/26/06
to
Joe, as best I can tell, if you don't happen to have
vb6, then you can't get it anymore...

The last I heard, microsoft was not selling vb6 as
a separate product, and the best you could do was to
purchase an old version of visual studio, which cost
in the vicinity of $1000.

That's a steep price to pay for an exe.

cheers, jw

asdf

unread,
Oct 5, 2006, 2:42:28 AM10/5/06
to
ANSWER HIS QUESTION OR GET A BOOK OUT ON COMEDY CENTRAL.


"mayayana" <mayaXX...@mindXXspring.com> wrote in message
news:qJwPg.9002$v%4.4...@newsread1.news.pas.earthlink.net...

Bob

unread,
Nov 12, 2006, 3:44:15 PM11/12/06
to
Here it is i use it everyday
http://adminscripteditor.com/main.asp


"mayayana" <mayaXX...@mindXXspring.com> wrote in message
news:qJwPg.9002$v%4.4...@newsread1.news.pas.earthlink.net...

mayayana

unread,
Nov 12, 2006, 4:32:31 PM11/12/06
to

> >> how to paste as file into exe in visual basic 2005, or how to convert
vbs
> > to
> >> exe but freeware.?

> Here it is i use it everyday
> http://adminscripteditor.com/main.asp
>

Isn't $99 a bit expensive for freeware?

0 new messages