Computer Hope

Microsoft => Microsoft DOS => Topic started by: selvan777 on August 15, 2007, 12:04:57 AM

Title: VbsToEXE
Post by: selvan777 on August 15, 2007, 12:04:57 AM
Hi,

I'm new here and at VB and would like to ask which forum would be the most appropriate place, if not here, to post the following question:

I'm trying to covert my IDforOE.vbs script (http://www.insideoe.com/tips/forceid.htm (http://www.insideoe.com/tips/forceid.htm))into an exe file and found the command line application VbsToEXE (http://www.f2ko.de/English/v2e/v2e.html (http://www.f2ko.de/English/v2e/v2e.html)). Question is, how do I type the correct string to make this work?  I have both the IDforOE and VbsToEXE in C:\Vbs and have tried the below:

C:\vbs>vbstoexe vbstoexe -c | -e  -v  -p "password"  "test"
'-e' is not recognized as an internal or external command,
operable program or batch file.

Thanks
Selvan
Edit/Delete Message
Title: Re: VbsToEXE
Post by: DeltaSlaya on August 15, 2007, 02:58:58 AM
Because you are trying to pipe the output into "-e". I don't know what that line does but if you need the pipe character there "|" try escaping it "^|".
Title: Re: VbsToEXE
Post by: selvan777 on August 15, 2007, 07:32:08 AM
I still can't get past "-e" but I will admit I don't understand what you mean by escaping it.  The key I'm using is shift+backslash.

below is the way the string looks at the vbs to exe site

vbstoexe [ -c | -e ] [ -v ] [ -p "password" ] [ "filename" ]
Title: Re: VbsToEXE
Post by: gpl on August 15, 2007, 07:51:52 AM
I see what it is now

After vbstoexe, you are to choose either of -e or -c (or neither) - thats what the | represents, you dont need to enter the |
Graham
Title: Re: VbsToEXE
Post by: selvan777 on August 15, 2007, 08:18:36 AM
Thanks for the replies but I still can't get it.  It now says incorrect commandline when I try C:\vbs>vbstoexe -c -v -p pass test.  Could you please type the entire commandline out for me using pass and test to satisfy the password and filename (if I even have that part correct).  Below is the -h output.


C:\vbs>vbstoexe -h

VbsToExe - Convert VB-Scripts(.vbs) into an executable(.exe)

Call:  vbstoexe [ -c | -e ] [ -v ] [ -p "password" ] [ filename ]

Options:
          -c --convert    Convert a VB-Script into an executable
          -e --extract    Extract the original VB-Script
          -h --help       Print this message
          -p --password   Protect the script with a password
          -v --version    Print version number

by Fatih Kodak
http://www.f2ko.de


Title: Re: VbsToEXE
Post by: selvan777 on August 15, 2007, 09:20:15 AM
Okay, I think I finally got it with the below line, could you please verify?

C:\vbs>vbstoexe -c idforoe.vbs -v -p "pass" "test"

It created a file idforoe.exe but when double clicked nothing happens but I guess that's trouble with the guys vbstoexe tool.  Because when I double click my idforoe,vbs file it opens the Identity Login window of Outlook Express.

Could someone please help me create an executable file from my idforoe.vbs file?

Thanks
Selvan
Title: Re: VbsToEXE
Post by: contrex on August 15, 2007, 11:40:08 AM
I'm a bit bemused by the idea of a vbs-to-exe converter, in the same way as I am about those bat-to-exe programs. Visual Basic Script is a  scripting language whose syntax is a subset of good ol' Visual Basic. Scripting languages are handy for er... well... scripting. Mind you, I'm not criticising anyone's choices, but if you want to make executables using VB syntax, what's wrong with Visual Basic?

That vbs-to-exe converter appears to be a kind of script wrapper which does not actually convert any code, it just adds a header to the vbscript which presumably exposes it at runtime and optionally password-hides the script. I don't know if it uses encryption.
Title: Re: VbsToEXE
Post by: DeltaSlaya on August 15, 2007, 01:53:35 PM
Okay, I think I finally got it with the below line, could you please verify?

C:\vbs>vbstoexe -c idforoe.vbs -v -p "pass" "test"

It created a file idforoe.exe but when double clicked nothing happens but I guess that's trouble with the guys vbstoexe tool.  Because when I double click my idforoe,vbs file it opens the Identity Login window of Outlook Express.

Could someone please help me create an executable file from my idforoe.vbs file?

Thanks
Selvan

What does the "test" in that line of code mean? Is that supposed to be a username? Because I don't see the need for one. You could try converting it with the bare minimum of commands, ie no password protection and just seeing if it converts correctly. If not you should try and find and GUI based converter.

Also why are you typing the -v? I'm not sure if I'm right but isn't that just to tell you what version vbstoexe is?

Quote
vbstoexe -c "filename"

Or this may work if it needs password protection.

Quote
vbstoexe -c -p "password" "full path to filename"
Title: Re: VbsToEXE
Post by: selvan777 on August 15, 2007, 11:24:45 PM
...what's wrong with Visual Basic?

It's not recognized, I need the action of this script to be in the form of an executable. See, I'm trying to edit the action of "open" in the registered file type "URL:MailTo Protocol" to point to an application that will force the Identity Login window of Outlook Express open when a MailTo link is clicked.

What does the "test" in that line of code mean? ...try converting it with the bare minimum of commands and just seeing if it converts correctly. If not you should try and find and GUI based converter.

I thought the "test" would tell it to name the output file "test.exe".

I just tried vbstoexe -c vbstoexe.exe and it created vbstoexe[1].exe but when I double click it it tries to do something for a second and nothing.  Whether it converted correctly or not is beyond me but I guess not since the Identity Login window for OE did not open.

Where do I find a GUI based converter for vbs to exe?
Title: Re: VbsToEXE
Post by: DeltaSlaya on August 15, 2007, 11:39:41 PM
Quote
I just tried vbstoexe -c vbstoexe.exe and it created vbstoexe[1].exe but when I double click it it tries to do something for a second and nothing.  Whether it converted correctly or not is beyond me but I guess not since the Identity Login window for OE did not open.

No the help file does not ask that you specify an output.

You said you typed 'vbstoexe -c vbstoexe.exe'. Of course that will cause unpredictable outcomes, the program is asking for a .vbs input not an .exe.

Do as I said above, where 'filename' is the name of the .vbs file, I assume in must be in the directory that your vbstoexe executable is, or just supply the full path.
Title: Re: VbsToEXE
Post by: selvan777 on August 16, 2007, 12:25:19 AM
Do as I said above...

Okay, it created idforoe.exe in the same dir but when double clicked it does nothing.

C:\vbs>vbstoexe -c -p "password" "idforoe.vbs"
Title: Re: VbsToEXE
Post by: DeltaSlaya on August 16, 2007, 12:32:18 AM
Is it a zero-byte file?

Try it without the password argument 'p "password"'.


I'll have a look for a GUI-based VBS to EXE converter..
Title: Re: VbsToEXE
Post by: selvan777 on August 16, 2007, 12:38:35 AM
Actually it's 8.88 KB in size.

I tried it and it created the same sized file with the same nithing result.

C:\vbs>vbstoexe -c idforoe.vbs

 Directory of C:\vbs

08/15/2007  11:36 PM    <DIR>          .
08/15/2007  11:36 PM    <DIR>          ..
08/15/2007  11:36 PM             9,095 idforoe.exe
08/08/2007  12:56 PM               388 IDForOE.vbs
08/14/2007  07:58 AM            26,308 VbsToExe.exe
               3 File(s)         35,791 bytes
               2 Dir(s)  20,821,999,616 bytes free
Title: Re: VbsToEXE
Post by: DeltaSlaya on August 16, 2007, 12:54:38 AM
Ok, I've looked around a bit, and discovered that that program in question does not always work as expected, if at all.

I think I have an alternative for you:
http://www.softpedia.com/progDownload/VisualBasicScript-Compiler-Download-79652.html
Right-click the 'External Mirror 1' link and click 'Save target / link as'.

I hope that enables you to convert your .vbs successfully.

Note: The file is a 7z file, you may need to download an extraction program such as WinRAR or a free alternative, can't remember the name right now..
Title: Re: VbsToEXE
Post by: selvan777 on August 16, 2007, 12:59:21 AM
Hey thanks a bunch for everything, I really appreciate it.

I already have WinRAR and will check out that link.

Thanks again.

Selvan
Title: Re: VbsToEXE
Post by: selvan777 on August 16, 2007, 08:34:16 AM
Looks like I'm now having to deal with a new bag of troubles. 

It seems that program requires VB6 and I do believe I have .NET already installed.  And from what I can gather, it looks like like I'm going to have to format to get rid of .NET so I can install VB6 first.

Is that true?

How do I determine what version of VB I have?
Title: Re: VbsToEXE
Post by: Deerpark on August 16, 2007, 05:58:49 PM
Can't you just install vb6 (http://support.microsoft.com/kb/192461)?
Title: Re: VbsToEXE
Post by: patio on August 16, 2007, 07:54:16 PM
Quote
It seems that program requires VB6 and I do believe I have .NET already installed.  And from what I can gather, it looks like like I'm going to have to format to get rid of .NET so I can install VB6 first.

No this is not true to the best of my knowledge...do you have a source for this info "? ?
Title: Re: VbsToEXE
Post by: selvan777 on August 16, 2007, 10:11:30 PM
No this is not true to the best of my knowledge...do you have a source for this info "? ?

Here's an example:

Computing.Net - problem to install vb6 to winxp pro
http://www.computing.net/programming/wwwboard/forum/11413.html
Title: Re: VbsToEXE
Post by: contrex on August 16, 2007, 11:47:13 PM
You don't need to install the full VB6 package - just the standard vb6 runtime DLL.


Title: Re: VbsToEXE
Post by: ghostdog74 on August 17, 2007, 12:32:04 AM
i would suggest you recode every thing to vb6..it should not be difficult, considering your vbs script is not that huge. you do know vb, don't u?
Title: Re: VbsToEXE
Post by: selvan777 on August 17, 2007, 08:27:17 AM
You don't need to install the full VB6 package - just the standard vb6 runtime DLL.

Should I install VB6 (http://support.microsoft.com/kb/192461) like Deerpark said or VB6 SP6 (http://support.microsoft.com/kb/290887) run-time files?

i would suggest you recode every thing to vb6..it should not be difficult, considering your vbs script is not that huge. you do know vb, don't u?

No I don't, this script doesn't belong to me and I've never written one of my own.
Title: Re: VbsToEXE
Post by: contrex on August 17, 2007, 09:35:28 AM
Should I install VB6 (http://support.microsoft.com/kb/192461) like Deerpark said or VB6 SP6 (http://support.microsoft.com/kb/290887) run-time files?

Go for SP6, it's the latest.

Title: Re: VbsToEXE
Post by: DeltaSlaya on August 17, 2007, 05:04:23 PM
OMG @contrex, you wrote inside the '[quote]'s. Sorry it just looks bad..
Title: Re: VbsToEXE
Post by: selvan777 on August 18, 2007, 07:43:07 AM
I downloaded "VB6.0-KB290887-X86.exe", extracted it, double clicked the "vbrun60sp6.exe", accepted the terms, then nothing happens, the app just quits.  I try again but never see the terms again, even after a restart.

It's like the system is refusing to let me install it.
Title: Re: VbsToEXE
Post by: contrex on August 18, 2007, 08:03:18 AM
Quote
I downloaded "VB6.0-KB290887-X86.exe", extracted it, double clicked the "vbrun60sp6.exe", accepted the terms, then nothing happens, the app just quits.

have you tried running the app that needs the VB6 runtimes?
Title: Re: VbsToEXE
Post by: selvan777 on August 18, 2007, 08:53:14 AM
I extracted "VBSCompiler.7z" using "7-Zip". 

Went to the dir "tool" and opened "maker.exe" and got a bunch of ?'s in a window called "VBSCompiler". 

Went to the head dir and opened "ScriptPad.exe" and got this: "Component 'comdlg32.ocx' or one of it's dependencies not correctly registered: a file is missing or invalid" in a window called "ScriptPad v2.01"
Title: Re: VbsToEXE
Post by: DeltaSlaya on August 18, 2007, 03:35:36 PM
That was just an example, you don't have to use it if it's having problems. Look on a good site like www.download.com or www.softpedia.com. Search for either "convert vbs to exe" or "vbs to exe converter".
Title: Re: VbsToEXE
Post by: selvan777 on August 18, 2007, 05:54:31 PM
I don't understand? What was an example?
I thought we were seeing if VB6 installed.
Title: Re: VbsToEXE
Post by: ghostdog74 on August 18, 2007, 05:55:34 PM
you should try to learn some vb instead of wasting time doing this.
Title: Re: VbsToEXE
Post by: DeltaSlaya on August 18, 2007, 06:01:30 PM
The original program I suggested was an example, you can look for others.

If ghostdog wants to, and depending on the size of the script I guess as a last resort ghostdog could 'convert' it for you??
Title: Re: VbsToEXE
Post by: ghostdog74 on August 18, 2007, 06:08:14 PM
I guess as a last resort ghostdog could 'convert' it for you??
hmm..not really. (unless i seen some effort).
Title: Re: VbsToEXE
Post by: DeltaSlaya on August 18, 2007, 06:09:40 PM
Haha, didn't think so, If he gave it to someone else maybe they'd have more luck using a program to convert it anyway?
Title: Re: VbsToEXE
Post by: selvan777 on August 18, 2007, 07:23:23 PM
Well, I had fun and enjoyed the community here and did learn a couple things.

Thank you all for that.

The search continues.

Rgds
Selvan
The Last Borns (http://lastborns.surf.to)
Title: Re: VbsToEXE
Post by: contrex on August 19, 2007, 01:31:39 AM
you should try to learn some vb instead of wasting time doing this.

I said that too. Glad I'm not the only one.