You are here

Launcher for .vbs scripts

8 posts / 0 new
Last post
orschiro
Offline
Last seen: 9 years 1 month ago
Joined: 2012-01-07 14:42
Launcher for .vbs scripts

Hello,

How can I create a working launcher for a .vbs script?

My launcher.ini contains the following line:

[Launch]
ProgramExecutable=Git\Git Bash.vbs

The launcher .exe is built without any errors but when running, the .vbs script does not show up. The path to the .vbs script is definitely correct.

Any ideas?

John T. Haller
John T. Haller's picture
Offline
Last seen: 1 hour 31 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Unsupported

I don't think VBS scripts are supported by the PA.c Launcher.

Sometimes, the impossible can become possible, if you're awesome!

Aluísio A. S. G.
Offline
Last seen: 8 years 4 months ago
DeveloperTranslator
Joined: 2010-11-09 17:43
No they aren't

But these are interpreted files; the following can be used then:

[Launch]
ProgramExecutable=%SystemRoot%\System32\WScript.exe
CommandLineArguments="Git\Git Bash.vbs" //B //NoLogo

(PS John: it'd be nice if you integrated something like Markdown to the post/comment editor.)

Previously known as kAlug.

orschiro
Offline
Last seen: 9 years 1 month ago
Joined: 2012-01-07 14:42
Path incorrect

Thanks for your suggestion. But this is not quite correct.

The launcher fails to start because it appends \App to the launch path. The error message:

Error: App\%SystemRoot%\System32\WScript.exe cannot be found

Aluísio A. S. G.
Offline
Last seen: 8 years 4 months ago
DeveloperTranslator
Joined: 2010-11-09 17:43
Right, right

We will need to make an exception for it then.

@John: I'm not sure there are enough use cases for treating wscript specially.

Previously known as kAlug.

orschiro
Offline
Last seen: 9 years 1 month ago
Joined: 2012-01-07 14:42
That is, for now I cannot

That is, for now I cannot create a launcher using the current launcher creation assistant?

John T. Haller
John T. Haller's picture
Offline
Last seen: 1 hour 31 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Nope

It's just as well as lots of corporate and university machines deactive VBS as it is used for nefarious purposes.

Sometimes, the impossible can become possible, if you're awesome!

orschiro
Offline
Last seen: 9 years 1 month ago
Joined: 2012-01-07 14:42
Cmd to start vbs

Alright. Now I am using a workaround to start the vbs script through a cmd script.

Log in or register to post comments