Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Arguments/Parameter count

Status
Not open for further replies.

shenniko

Programmer
Apr 15, 2005
52
US
Hi All,

I need a little bit of scripting help here.

Within OBIEE (web based Business Intelligence tool) we send a file to a VBscript with a list of Arguments/Parameters.

Now generally i know you can use the below code to count the number of arguments passed:
Code:
Set objArgs = Wscript.Arguments

'Count the arguments
WScript.Echo objArgs.Count

But when I try that code i get:

"WScript" is not declared, which I believe is because its WSH, and it cant be used in this way..

The origional code (which wasnt written by me) uses the below statement to save the file to a local location:

Code:
objFSO.CopyFile Parameter(0),"C:\OracleBI\server\Scripts\Common\" & fName & "." & fFormat ,true

So, how can i get a count of the number of Paramaters passed to the code??

Thanks in advance

Robbie
 
Did you try Parameter.Count (or Parameter.length) ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Wrong number of arguments or invalid property assignment: 'Parameter'

When i use Parameter.Count
 
How was assigned Parameter in the original code ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top