Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


VBS to EXE

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,29193
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> VBS to EXE
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1] 2 3   next >   >>
Login
Message << Older Topic   Newer Topic >>
 VBS to EXE - 12/20/2005 4:36:17 AM   
  mr_mido

 

Posts: 4
Score: 0
Joined: 12/19/2005
Status: offline
I was wondering how to convert from vbs to exe, I googled the net, and I found that many coders asks the same question.

is it possible to convert from VBS to EXE ?
many coders wrote NO

But this is what I found, and I thought to share it with you.

Script2EXE
http://www.xuebrothers.net/sh/userreg.htm

ExeScript
http://www.hide-folder.com/overview/hf_7.html

but these are shareware, does any one know any freeware tool ?

Thank you.
 
 
Post #: 1
 
 RE: VBS to EXE - 12/20/2005 4:37:46 AM   
  mbouchard


Posts: 1906
Score: 14
Joined: 5/15/2003
From: USA
Status: offline
I have not seen any freeware to do this with Vbscript.  But you can get one of the shareware's or look at AdminScriptEditor which essentially wraps a script in an exe.

_____________________________

Mike

For useful Scripting links see the Read Me First stickey!

Always remember Search is your friend.

(in reply to mr_mido)
 
 
Post #: 2
 
 RE: VBS to EXE - 12/20/2005 5:32:47 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
Just so you know, all of the Script EXEs that I have ever seen are just glorified self extracting zip files and not true EXEs at all.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to mbouchard)
 
 
Post #: 3
 
 RE: VBS to EXE - 12/20/2005 5:51:53 AM   
  Cybex


Posts: 412
Score: 0
Joined: 9/14/2005
From: Florida
Status: offline
 It all depends on what you mean when say VBS to EXE...  If you mean like Ebgreen said, cramming the script into a self -extracting executable then there are applications that do that.  I don't know what the price ranges are but they are out there.  Now if you are talking about an actual executable that will run in a non-runtime manner than this is not a solution.  When the executable runs it dumps the VBS out to a temp folder and runs the VBS.  In secure systems that have locked down their systems to prevent the execution of mobile code this approach will not work.  In this case you must slip and convert if necessary your VBS into VB and compile.  This is really easy for basic scripts and is now free thanks to MS releasing VB Express (and others).  http://msdn.microsoft.com/vstudio/express/


Cybex

_____________________________

Common sense is not so common.

(in reply to ebgreen)
 
 
Post #: 4
 
 RE: VBS to EXE - 12/20/2005 8:58:10 AM   
  kirrilian


Posts: 628
Score: 3
Joined: 3/15/2005
From:
Status: offline
granted it isnt freeware, but primal script pro seems to be able to do a true executable rather than a self-executing zip

_____________________________

Have you searched here ?
VBScript Fundamentals
My Site

(in reply to Cybex)
 
 
Post #: 5
 
 RE: VBS to EXE - 12/20/2005 11:33:24 AM   
  Cybex


Posts: 412
Score: 0
Joined: 9/14/2005
From: Florida
Status: offline
Not unless it converts it into another language, VBScript is a runtime language that must be passed into the wscript or cscript engines for compilation and execution.

Cybex

Addition:

If it is written in the VBScript language then is as far as I have know and/or have ever seen returned back into a normal readable .VBS file prior to execution.  So no matter how you encrypt or sudo-compile it, it is always placed somewhere on the system in it's original form and the ran through a script engine.

< Message edited by Cybex -- 12/20/2005 11:40:04 AM >


_____________________________

Common sense is not so common.

(in reply to kirrilian)
 
 
Post #: 6
 
 RE: VBS to EXE - 12/21/2005 3:05:55 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
Primalscript is creating a glorified self extracting zip as well. When you run the exe, it unpacks the script and runs it.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to Cybex)
 
 
Post #: 7
 
 RE: VBS to EXE - 12/21/2005 6:30:46 AM   
  DiGiTAL.SkReAM


Posts: 1171
Score: 7
Joined: 9/6/2005
From: Florida, USA
Status: offline
ebgreen is correct.  To test it, do this:
Write a vbs that contains wscript.echo "test"
"compile" it into an exe with primalscript, and then run the exe.
When the popup rears its head, open explorer and go looing in your %temp% folder.  YOu will see a file with a .vbs extensiont aht contains the script you just wrote.  This file vanishes after finishing.


_____________________________

"Would you like to touch my monkey?" - Dieter (Mike Meyers)

"It is better to die like a tiger, than to live like a pussy."
-Master Wong, from Balls of Fury

(in reply to ebgreen)
 
 
Post #: 8
 
 RE: VBS to EXE - 12/21/2005 7:00:48 AM   
  mr_mido

 

Posts: 4
Score: 0
Joined: 12/19/2005
Status: offline
thank you all for the valuable information, I guess then it is not possible to convert it.


(in reply to DiGiTAL.SkReAM)
 
 
Post #: 9
 
 RE: VBS to EXE - 12/21/2005 7:03:48 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
Well, its not possible to convert it through any automated process. It is relatively easy however to convert VBS to straight VB code then compile it.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to mr_mido)
 
 
Post #: 10
 
 RE: VBS to EXE - 12/21/2005 5:02:09 PM   
  kirrilian


Posts: 628
Score: 3
Joined: 3/15/2005
From:
Status: offline
well just bust my bubble then 


source code is meant to be free anyways

_____________________________

Have you searched here ?
VBScript Fundamentals
My Site

(in reply to ebgreen)
 
 
Post #: 11
 
 RE: VBS to EXE - 12/22/2005 2:28:32 AM   
  DiGiTAL.SkReAM


Posts: 1171
Score: 7
Joined: 9/6/2005
From: Florida, USA
Status: offline
quote:

ORIGINAL: kirrilian
source code is meant to be free anyways


Try telling that to all the small software developers out there that make their livings through their code. :)

I know that I certainly wish I had the source to a NUMBER of apps!!  Would save me thousands of dollars!

_____________________________

"Would you like to touch my monkey?" - Dieter (Mike Meyers)

"It is better to die like a tiger, than to live like a pussy."
-Master Wong, from Balls of Fury

(in reply to kirrilian)
 
 
Post #: 12
 
 RE: VBS to EXE - 12/22/2005 4:40:05 AM   
  kirrilian


Posts: 628
Score: 3
Joined: 3/15/2005
From:
Status: offline
quote:

ORIGINAL: DiGiTAL.SkReAM

quote:

ORIGINAL: kirrilian
source code is meant to be free anyways


Try telling that to all the small software developers out there that make their livings through their code. :)

I know that I certainly wish I had the source to a NUMBER of apps!!  Would save me thousands of dollars!


true dat!

_____________________________

Have you searched here ?
VBScript Fundamentals
My Site

(in reply to DiGiTAL.SkReAM)
 
 
Post #: 13
 
 RE: VBS to EXE - 12/26/2005 3:51:57 AM   
  instok

 

Posts: 1
Score: 0
Joined: 12/26/2005
Status: offline
Two ways to know where the script is running, inside the executable's process, or in CScript.exe/WScript.exe's process:

1. write a line that certianlly produces error, make the exe and run it, the error message box will tell you where the source file is and which line has caused an error.

2. Write a loop that will not end, make the exe and run it, look at "Task list" to see if there is a CScript/WScript process.

(in reply to DiGiTAL.SkReAM)
 
 
Post #: 14
 
 RE: VBS to EXE - 1/16/2006 8:03:20 AM   
  derekpc

 

Posts: 3
Score: 0
Joined: 1/6/2006
Status: offline
quote:

ORIGINAL: ebgreen
It is relatively easy however to convert VBS to straight VB code then compile it.

How is this done?

(in reply to ebgreen)
 
 
Post #: 15
 
 RE: VBS to EXE - 1/16/2006 10:03:53 AM   
  Fredledingue


Posts: 370
Score: 0
Joined: 5/9/2005
From:
Status: offline
For those who never used VB, I don't think that's that easy, but of course not that difficult if you want to learn VB and already know VBS.

But what we want is an app that translate VBS to VB for us because we have no time learning another language.
Such an app could be done easily since translating from VBS to VB is so easy. The problem is that not every VBS methods are available in VB.
So some VBS lines will have to be replaced by more complex VB lines.



_____________________________

Fred

(in reply to derekpc)
 
 
Post #: 16
 
 RE: VBS to EXE - 5/7/2007 12:51:12 AM   
  4scriptmoni


Posts: 192
Score: 0
Joined: 5/3/2007
Status: offline
hello, I am trying to get a working version of exescript?
even 2.1 would be good, anyobdy can help me out????????

_____________________________

Enterprise Microsoft Scripts
Exchange, Login/Logout Monitor,TS, Monitoring, Security, AD, etc...
http://www.felipeferreira.net

(in reply to mr_mido)
 
 
Post #: 17
 
 RE: VBS to EXE - 5/7/2007 1:30:47 AM   
  DiGiTAL.SkReAM


Posts: 1171
Score: 7
Joined: 9/6/2005
From: Florida, USA
Status: offline
The link at the top of this page works.  Go there and download the trial.

_____________________________

"Would you like to touch my monkey?" - Dieter (Mike Meyers)

"It is better to die like a tiger, than to live like a pussy."
-Master Wong, from Balls of Fury

(in reply to 4scriptmoni)
 
 
Post #: 18
 
 RE: VBS to EXE - 5/7/2007 3:26:09 AM   
  everstrike

 

Posts: 12
Score: 0
Joined: 4/12/2007
Status: offline
I recommend you to try 3.0 version of ExeScript.
More info here:
http://www.hide-folder.com/overview/hf_7.html

Richard Davids,
VBS to EXE convertion tool

< Message edited by everstrike -- 6/5/2007 6:38:54 PM >

(in reply to 4scriptmoni)
 
 
Post #: 19
 
 RE: VBS to EXE - 6/5/2007 2:06:49 PM   
  jr393

 

Posts: 2
Score: 0
Joined: 6/5/2007
Status: offline
I have had some luck inserting VBS code into VB.  I just did that at work today.  The biggest thing that I have found so far is that the wscript and shell commands won't work in VB.  Some things, such as setting NTFS permissions seem to work better in VB though.

(in reply to mr_mido)
 
 
Post #: 20
 
 
Page:   [1] 2 3   next >   >>
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> VBS to EXE Page: [1] 2 3   next >   >>
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts