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.
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)
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
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
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)
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
> 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
I don't have tried it .. I use Autoit3 for this kind of stuff
--
Fosco
:)
"mr_unreliable" <kindlyReply...@notmail.com> wrote in message
news:ezIyrwN3...@TK2MSFTNGP03.phx.gbl...
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
"mayayana" <mayaXX...@mindXXspring.com> wrote in message
news:qJwPg.9002$v%4.4...@newsread1.news.pas.earthlink.net...
"mayayana" <mayaXX...@mindXXspring.com> wrote in message
news:qJwPg.9002$v%4.4...@newsread1.news.pas.earthlink.net...
> Here it is i use it everyday
> http://adminscripteditor.com/main.asp
>
Isn't $99 a bit expensive for freeware?