Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: VbsToEXE  (Read 19084 times)

0 Members and 1 Guest are viewing this topic.

selvan777

  • Guest
VbsToEXE
« 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)into an exe file and found the command line application VbsToEXE (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

DeltaSlaya



    Apprentice
  • Google
    Re: VbsToEXE
    « Reply #1 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 "^|".
    System specs:
    Intel Core 2 Duo E6600 (up to 3.3 stock V and air)
    ASUS Striker Extreme
    XFX 8600GT XXX Edition
    2x 1gB Corsair XMS2 DDR2-800
    Seagate Barracuda 320gB SATA
    Raidmax Ninja 918 (520W ATXV2.0 PSU)
    -

    selvan777

    • Guest
    Re: VbsToEXE
    « Reply #2 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" ]

    gpl



      Apprentice
    • Thanked: 27
      Re: VbsToEXE
      « Reply #3 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

      selvan777

      • Guest
      Re: VbsToEXE
      « Reply #4 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



      selvan777

      • Guest
      Re: VbsToEXE
      « Reply #5 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

      contrex

      • Guest
      Re: VbsToEXE
      « Reply #6 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.

      DeltaSlaya



        Apprentice
      • Google
        Re: VbsToEXE
        « Reply #7 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"
        System specs:
        Intel Core 2 Duo E6600 (up to 3.3 stock V and air)
        ASUS Striker Extreme
        XFX 8600GT XXX Edition
        2x 1gB Corsair XMS2 DDR2-800
        Seagate Barracuda 320gB SATA
        Raidmax Ninja 918 (520W ATXV2.0 PSU)
        -

        selvan777

        • Guest
        Re: VbsToEXE
        « Reply #8 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?

        DeltaSlaya



          Apprentice
        • Google
          Re: VbsToEXE
          « Reply #9 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.
          System specs:
          Intel Core 2 Duo E6600 (up to 3.3 stock V and air)
          ASUS Striker Extreme
          XFX 8600GT XXX Edition
          2x 1gB Corsair XMS2 DDR2-800
          Seagate Barracuda 320gB SATA
          Raidmax Ninja 918 (520W ATXV2.0 PSU)
          -

          selvan777

          • Guest
          Re: VbsToEXE
          « Reply #10 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"

          DeltaSlaya



            Apprentice
          • Google
            Re: VbsToEXE
            « Reply #11 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..
            System specs:
            Intel Core 2 Duo E6600 (up to 3.3 stock V and air)
            ASUS Striker Extreme
            XFX 8600GT XXX Edition
            2x 1gB Corsair XMS2 DDR2-800
            Seagate Barracuda 320gB SATA
            Raidmax Ninja 918 (520W ATXV2.0 PSU)
            -

            selvan777

            • Guest
            Re: VbsToEXE
            « Reply #12 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

            DeltaSlaya



              Apprentice
            • Google
              Re: VbsToEXE
              « Reply #13 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..
              System specs:
              Intel Core 2 Duo E6600 (up to 3.3 stock V and air)
              ASUS Striker Extreme
              XFX 8600GT XXX Edition
              2x 1gB Corsair XMS2 DDR2-800
              Seagate Barracuda 320gB SATA
              Raidmax Ninja 918 (520W ATXV2.0 PSU)
              -

              selvan777

              • Guest
              Re: VbsToEXE
              « Reply #14 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