note
maa
<p>VBScript has two types of arguments... Named and Anonymous and they are provided as follows:</p>
<code>
C:> cscript.exe /nologo script.vbs /CycleDate:01-12-2005 /Test:2 Arg1 Arg2 Arg3</code>
<p>This results in three Collection Objects <code>Arguments()</code>, <code>Arguments.Named()</code> and <code>Arguments.UnNamed()</code></p>
<p>These will have elements </p>
<code>
'VBScript, not Perl
Arguments.Named("CycleDate") 'value="1-12-2005"
Arguments.Named("Test") 'value="2"
</code>
<p>There should be three elements of <code>Arguments.UnNamed()</code> with values "Arg1", "Arg2" and "Arg3". </p>
<p>Documented at: [http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/wslrfnamedproperty.asp]</p>
<p>If you're converting you might use [cpan://Getopt::Long] - then you'd have <code>GetOptions( "CycleDate"=>\$cycledate ...) or warn...</code> </p>
<p>HTH -- Mark</p>
439836
439836