Command Line options for compiled file

VBS to EXE and JScript to EXE Compiler
Post Reply
FeLix
Posts: 1
Joined: Wed May 21, 2008 2:36 am

Command Line options for compiled file

Post by FeLix »

Hi,

I have done some testing with ScriptCrytor and found that the compiled file will not accept any command line options written into the original script after creating the exe file. This really makes ScriptCrytor a bit of a waste if you have command line options in your scripts.

Can you please add this feature to future versions?

Cheers,
Felix
AlexBrazil
Posts: 2
Joined: Sun Sep 14, 2008 2:00 pm

Re: Command Line options for compiled file

Post by AlexBrazil »

FeLix, I´ve done a script that I pass parameters to exe compiled and it works out fine.

I dont know what paramters you're trying to pass, but that I'm using is OK.

Alex.
des
Posts: 1
Joined: Tue Oct 28, 2008 7:18 pm

Post by des »

Yeah - there is apparently a problem. When I run this code:

Code: Select all

		For Each arg In WScript.arguments
		    X(i) = arg
		    i = i + 1
		Next
and pass in any arguments I get "Object not a collection" with the compiled version of the code, but no error when I run the vbs directly.
support
Site Admin
Posts: 476
Joined: Fri Feb 13, 2004 1:05 pm

Post by support »

This code work correct:

Set objArgs = WScript.Arguments
For I = 0 to objArgs.Count - 1
msgbox objArgs(I)
Next
Post Reply