How to run VBscript using wine?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear All,
I want to run some vbscripts on Linux, but after searching and
trying several days, I failed complete.

Here is what I did:

*ENV*:
Ubuntu 10.10 x86_64
wine-1.3.9 (from wine ppa)

*SCRIPT*:test.vbs
MsgBox("HelloWorld!")

*Method One*:
   wine wscript test.vbs
   fixme:wscript:wWinMain Could not find engine for L".vbs"

*Method Two*:
   Step 1:
     winetricks wsh56vb
Executing wine /home/fracting/.cache/winetricks/vbs56men.exe
fixme:msvcrt:_setmbcp trail bytes data not available for DBCS codepage 0 -
assuming all bytes
Install of wsh56vb done
winetricks done.
   Step 2:
     wine wscript test.vbs
fixme:wscript:wWinMain Could not find engine for L".vbs"

*Method Three*:
   Step 0:
     rm -rf ~/.wine
   Step 1:
     winetricks wsh56
Output:  winetricks_wsh56.log
   Step 2:
     wine wscript test.vbs
fixme:wscript:wWinMain Could not find engine for L".vbs"
     wine cscript test.vbs
fixme:msvcrt:_setmbcp trail bytes data not available for DBCS codepage 0 -
assuming all bytes
fixme:ole:CoInitializeSecurity ((nil),-1,(nil),(nil),0,3,(nil),0,(nil)) -
stub!
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.

Input Error: There is no script engine for file extension ".vbs".

*Method Four*:
   Step 0:
      rm -rf ~/.wine
   Step 1:
      winetricks vb6run wsh56
Output: winetricks_vb6run_wsh56.log
   Step 2:
      wine cscript test.vbs
fixme:msvcrt:_setmbcp trail bytes data not available for DBCS codepage 0 -
assuming all bytes
fixme:ole:CoInitializeSecurity ((nil),-1,(nil),(nil),0,3,(nil),0,(nil)) -
stub!
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.

Input Error: There is no script engine for file extension ".vbs".



Would you please give me some tips?
Thanks a lot!


-- 
Regards,
Qian Hong
-
Send from Ubuntu
http://www.ubuntu.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-users/attachments/20101215/b1d8c16e/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winetricks_wsh56.log
Type: text/x-log
Size: 2826 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-users/attachments/20101215/b1d8c16e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winetricks_vb6run_wsh56.log
Type: text/x-log
Size: 2882 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-users/attachments/20101215/b1d8c16e/attachment-0001.bin>



[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux