Page 1 of 1

Command Line options for compiled file

Posted: Wed May 21, 2008 2:39 am
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

Re: Command Line options for compiled file

Posted: Mon Sep 29, 2008 1:32 am
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.

Posted: Tue Oct 28, 2008 7:21 pm
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.

Posted: Fri Oct 31, 2008 10:50 pm
by support
This code work correct:

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