Abyssmedia.com Forum Index Abyssmedia.com
Abyssmedia Support Forums
 
  FAQ    Search    Memberlist    Usergroups   Register 
  Profile    Log in to check your private messages    Log in 

Command Line options for compiled file

 
Post new topic   Reply to topic    Abyssmedia.com Forum Index -> ScriptCryptor
View previous topic :: View next topic  
Author Message
FeLix



Joined: 21 May 2008
Posts: 1

PostPosted: Wed May 21, 2008 2:39 am    Post subject: Command Line options for compiled file Reply with quote

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

PostPosted: Mon Sep 29, 2008 1:32 am    Post subject: Re: Command Line options for compiled file Reply with quote

FeLix, Ive 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

PostPosted: Tue Oct 28, 2008 7:21 pm    Post subject: Reply with quote

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: 376

PostPosted: Fri Oct 31, 2008 10:50 pm    Post subject: Reply with quote

This code work correct:

Set objArgs = WScript.Arguments
For I = 0 to objArgs.Count - 1
msgbox objArgs(I)
Next
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Abyssmedia.com Forum Index -> ScriptCryptor All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2011 phpBB Group