| View previous topic :: View next topic |
| Author |
Message |
FeLix
Joined: 21 May 2008 Posts: 1
|
Posted: Wed May 21, 2008 2:39 am Post subject: Command Line options for compiled file |
|
|
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 |
|
| Back to top |
|
 |
|
|
AlexBrazil
Joined: 14 Sep 2008 Posts: 2
|
Posted: Mon Sep 29, 2008 1:32 am Post subject: Re: Command Line options for compiled file |
|
|
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. |
|
| Back to top |
|
 |
des
Joined: 28 Oct 2008 Posts: 1
|
Posted: Tue Oct 28, 2008 7:21 pm Post subject: |
|
|
Yeah - there is apparently a problem. When I run this code:
| Code: |
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. |
|
| Back to top |
|
 |
support Site Admin
Joined: 13 Feb 2004 Posts: 302
|
Posted: Fri Oct 31, 2008 10:50 pm Post subject: |
|
|
This code work correct:
Set objArgs = WScript.Arguments
For I = 0 to objArgs.Count - 1
msgbox objArgs(I)
Next |
|
| Back to top |
|
 |
|