How Can I run a .vbs (Visual Basic Script) file on Linux?

Hello, I have a doubt:
How Can I execute on Linux a .vbs file? I can't use wine cause it is not a .exe file.
Is there any way?
Greetings

Mikko777 wrote:http://www.cyberciti.biz/tips/visual-ba … linux.html learn to use google
Google works, yes ... if you know what you are searching for. Try this search: VisualBasic is not VBScript.
Here is what you will need (consult an attorney first):
- Wine
- Windows Scripting Host (WSH) 5.6* (available officially from MS website, but requires validation):
http://www.microsoft.com/downloads/deta … laylang=en
* There is an update to 5.7 also available form MS
- You will also need (from your Windows installation):
mfc42.dll
- Once you have the files placed in your Wine '/system32' folder (via installer or extraction), you will need to register dll files. At minimum, I think you can get by with:
wine regsvr32 /path/to/vbscript.dll
wine regsvr32 /path/to/wshext.dll
Others may be required ... if you get more messages alerting you to register files, just repeat for each one necessary. Or register them all and be done with it.
Once you have WSH setup, you can launch the VBScript file by opening 'winefile' and double clicking on the script. From the command line, you will need to launch it with 'wscript':
wine wscript "Z:\\home\\user\\.wine\\dosdevices\\c:\\Program Files\\test.vbs"
If you attempt to launch the VBScript with just:
wine "Z:\\home\\user\\.wine\\dosdevices\\c:\\Program Files\\test.vbs"
you will get a message about 'BAD EXE Format' or similar.
Last edited by MrWeatherbee (2007-11-09 15:03:36)

Similar Messages

  • How can i run Lightroom 3.6 with RAW files from Canon 650D?

    How can i run Lightroom 3.6 with RAW files from Canon 650D?

    Download the newest DNG converter from Adobe, convert your RAW photos to DNG, and then Import into Lightroom.

  • How can I run a continuous interactive update script?

    Hi,
    I've written an interactive update sql statement that will need to be run several times. Typing @f:\folder\file.sql can get time consuming and boring after a couple of times of inputting the data.
    Is there an easy way to write a procedure that will run the script until you tell it to stop?
    Thanks
    Jen

    The script prompts the user to enter an academic year e.g. 01/02, a student reference number e.g. 20000001, a prior attainment figure, a course suitability figure, an 'other' figure and a baseline figure. These values are updated into the relevant fields using an update statement within the script.
    Yes I am using sql+ and have tried using the / function but all that happens is the update statement runs again not the actual @f:\folder\filename.sql;
    As for knowing when to quit the script, there would have to be some sort of loop.
    Example (Pseudo code)
    Prompt user to run the script, answer Y or N
    Do
    run script
    while answer to prompt is Y
    I have a feeling that the above loop would have to be written in PL/SQL.

  • How can I run "office installermpkg" from my downloaded files in Finder?

    I successfully installed Microsoft Communicator from the download files in Finder. I then downloaded the office installer package but it won't run. I simply click on it and it takes me to more files, and so on.  Can anyone help? I'm a Mac newbie and am ready to throw in the towel!  The downloaded file is named "office installermpkg"  Thank you SO much for your help....

    From where are you downloading Office 2011? The download site is here. You don't have a legal installer.

  • Running a Visual Basic Script...

    Hi,
    Is there a way to run a visual basic script from a director project?
    Thanks

    You can use Buddy API to run a vbs script file.
    ie.
    baOpenFile( _movie.path & "My Script.vbs", "Normal" )
    You could also try the inbuilt open command but I haven't tested it.

  • How can I run 2 keynote presentations on 2 different macs with only one keyboard?

    How can I have 2 different keynote presentations that I want to run simultaneously through 2 different projectors, but I'd like to try and avoid using 2 keyboards - and use a hardware solution, rather than relying on my 2 fingers!! (it's a long conference!!!) thanks for any help.

    Open the CSS in DW, and use F10 to open the Code Inspector.
    Place the
    latter as needed.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Random_Yggdrasil" <[email protected]> wrote
    in message
    news:gi2htb$j4j$[email protected]..
    > How can I run 2 Dreamweaver windows at the same time on
    my PC?
    > basically I have 2 monitors and I want to edit CSS on
    one monitor and have
    > the
    > html page open on the other so I can quickly look from
    one to another with
    > in a
    > split second instead of taking that extra time to switch
    back and forth
    > using
    > the tabs at the top, I know I should probably invest
    into a mac so i can
    > work
    > out side of the Dreamweaver application window and I
    will in the future
    > but is
    > there any way i can do this on my windows XP pro PC?
    >
    > Thank you
    > Maurice
    >
    >
    >

  • How can I run 2 Dreamweaver windows at the same time?

    How can I run 2 Dreamweaver windows at the same time on my
    PC?
    basically I have 2 monitors and I want to edit CSS on one
    monitor and have the html page open on the other so I can quickly
    look from one to another with in a split second instead of taking
    that extra time to switch back and forth using the tabs at the top,
    I know I should probably invest into a mac so i can work out side
    of the Dreamweaver application window and I will in the future but
    is there any way i can do this on my windows XP pro PC?
    Thank you
    Maurice

    Open the CSS in DW, and use F10 to open the Code Inspector.
    Place the
    latter as needed.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Random_Yggdrasil" <[email protected]> wrote
    in message
    news:gi2htb$j4j$[email protected]..
    > How can I run 2 Dreamweaver windows at the same time on
    my PC?
    > basically I have 2 monitors and I want to edit CSS on
    one monitor and have
    > the
    > html page open on the other so I can quickly look from
    one to another with
    > in a
    > split second instead of taking that extra time to switch
    back and forth
    > using
    > the tabs at the top, I know I should probably invest
    into a mac so i can
    > work
    > out side of the Dreamweaver application window and I
    will in the future
    > but is
    > there any way i can do this on my windows XP pro PC?
    >
    > Thank you
    > Maurice
    >
    >
    >

  • How can i run VisualScript of one URL against another URL

    hi folks,
    could anybody tell me how can we run the visual script of one url against another url ?
    eg: visual script recorded for http://www.abcd.com/index.html must be run against http://www.abcd.com/index1.html
    thanks in advance,
    pasumarthi

    pasumarthi,
    You can right click the address node select properties on page one and change the url there. Since the tool is DOM based all following urls will automatically update when you play the script back. You can also use the script updater utility (in the etest icon group) if you have 8.20.
    Hope this helps.

  • How Can I Run A SQLJ Normal Project In SAP NWDS

    I have a question about SQLJ in SAP NWDS.
    1.I created a java dictionary project,and then create the table , then depoly it.it's ok.
    2.I created a java normal project including the above java dictionary project.
    3.I used the SQLJ tech in the java normal project,exporting the opensqllib.jar,sqljapi.jar,sqljc.jar,sqljimpl.jar.
    4.I coded the normal project,and export the project .jar,everything is ok.
    <b>5.But when i runed the project in NWDS,the error appeared:java.lang.NoClassDefFoundError: com/sap/sql/log/OpenSQLException
         at com.ezkj.deom.sqlj.MainApp.main(MainApp.java:21)
    Exception in thread "main"</b>
    How Can I Run A SQLJ Normal Project In SAP NWDS?
    PLS Help me and don't let me alone!

    Tony,
    Why not try to import your SQLJ project in SAP NWDS. Add all the jars mentioned to the project path both for compile time as well as runtime. Now try running he project. Once you are able to bypass java.lang.NoClassDefFoundError, you will get other errors related to SQL statements. These Oracle SQL statements needs to be converted to OpenSQL format.
    Chill out!!!
    Sukanta Rudra
    Note: If helpful, plz donate some points.

  • How can I run the report for different input values at the same time?

    Reports version: Report Builder 6.0.8.13.1
    Oracle version: Oracle8i Enterprise Edition Release 8.1.7.0.0
    I want to run the same report for different input parameter values and spool each o/p to different file and ftp to a server. For this, as a first step, I am spooling different input values in to a file, reading those values through a loop and calling the report for that input values. Each report run/execution is taking 15 minutes. Total report execution is taking approximately 4 hours (assuming 16 different input values) to complete. So I have to wait 4 hours to see ALL outputs.
    I would like to run the report parallel for ALL the input values and I should be able to see the ALL outputs with in 15 or 16 minutes.
    In my shell script, I added & symbol at the end of the report call to start/run the job in the background. Due to this the control passed to the next step after the report call. At this place I have an ftp command to send the output file to a different server and it is giving error some thing like “o/p file is not available/created yet". This is due to the fact that report writer is NOT yet completely started/initiated or it is NOT completed the spooling.
    How can I run the report at the same time for all the input values and save the time?
    Thanks in advance.
    Kishore.

    Increase the number of server engines running right now it seems there is only one engine running ,increase it to 4 or 6
    and then atleast 4 or 6 reports will run simultaneously.
    For FTPing the output add to your sript to check whether it is locked and if not then only try to ftp .
    Also for more better functionality read the document (chapter 15 ) for 10g reports for its new fuinctionality.
    http://download.oracle.com/docs/cd/B14099_17/bi.1012/b14048/toc.htm
    Thanks
    Subodh

  • How can I run a vga monitor and projector together on my Mac Pro 15"??

    How can I run a vga monitor and projector together on my Mac Pro OSX 15"?

    You can upgrade to Snow Leopard, Lion or Mountain Lion (coming next month), but you need Snow Leopard to upgrade to Lion or Mountain Lion. Check this web to know how to add memory to your computer and the memory that it supports (probably, 3 GB).

  • How can i run a java class file from shell?

    Hi all,
    I've a .class file named "File" that contains Main method, it is in the package "File2".
    How can I run it by shell command?
    PS: "java -cp . file" doesn't work it launch->
    Exception in thread "main" java.lang.NoClassDefFoundError: File2/File (wrong name: File2/File)
    Thanks in advance.

    Just to understand: is File2 ar jar archive or not? If it is a jar archive, have you tried open File2.jar? If File2 is a directory within the current directory, have you tried java -cp . File2/File? I just tested with a set of classes and it works... Let me be precise:
    * Let us imagine you are working in a directory whole path is PathToDir/
    * in this directory you have the classes put in a directory called File2
    * in order to launch File.class then you would have to invoke :
    cd PathToDir/ (just to be sure)
    java -cp . File2/File
    *if you were to do the following then you would have the problem you describe
    cd PathToDir/File2/
    java -cp . File

  • How can I run a packet sniffer on a Router or Switch

    I have on my network several router 1700 series and switches Catalyst 2950 and I want to know how can I run ethereal on those babies to monitore what comes and goes

    The two most common methods would be (the old way) insert a hub (not a switch) in-line between the devices withthe traffic you wish to monitor or (the new way, for Cisco anyway) using port mirrroring.
    A hub (not a switch) will repeat every pulse that passes on the line to the analyzer.
    Since finding a new hub these days is virtually impossible (even some of the things sold as hubs are really switches), the more common way, at least in Cisco environments, is to "SPAN" (aka Port Mirroring) the port of the device whose traffic you'd like to monitor.
    Here's the setup guide for a 2950:
    http://www.cisco.com/en/US/docs/switches/lan/catalyst2950/software/release/12.1_19_ea1/configuration/guide/swspan.html
    Good Luck
    Scott

  • How can i run a special name method of class?

    i dynamic created a obj
    and i don't know the method of class,
    so i use a String parameter as the method's name
    but how can i run the method?
    please give me a copy of code, thanks!

    import java.lang.reflect.Method;
    public class unknown{
         public static void main(String[] args){
              unknown thisObj = new unknown();
              Class thisClass = thisObj.getClass();
              // calling the method()
              try{
                   Class[] allParamatersType = {};
                   Method mth = thisClass.getDeclaredMethod("method", allParamatersType);
                   String returnCallingAdd = (String)mth.invoke(thisObj, null);
                   System.out.println("calling add() : " + returnCallingAdd);
              catch(Exception ex){
                   ex.printStackTrace();
              // calling the method(int , string)
              try{
                   String firstValue = "Testing";
                   Class[] allParamatersType = { firstValue.getClass() };
                   Object[] values = { firstValue };
                   Method mth = thisClass.getDeclaredMethod("method", allParamatersType);
                   String returnCallingAdd = (String)mth.invoke(thisObj,values );
                   System.out.println("calling add() : " + returnCallingAdd);
              catch(Exception ex){
                   ex.printStackTrace();
         public String method(){
              return "method() called";     
         public String method(String two){
              return "method(String) called";     

  • How can I run a Flash Projector(exe) under GNU/Linux without wine?

    I was received a flash on projector type(exe), there's no another swf file on there.
    I'd like to ask: How can I run that on a Linux?
    Thanks for reading and paying attention.

    This sounds like a question for the linux distribution forum that you're using.  The .exe is a stand alone executable, if you can run win32 binaries then you should be able to run this.
    Thanks,
    Chris

Maybe you are looking for