September 09 2010 13:58:18
Navigation
· Home
· Online Store
· Course Outlines (PDF Files)
· Sample Videos
· Contact Info
· Web Links
· Articles (Sample Code)

Other Videos
· WordPress (CMS)
· Joomla (CMS)
· Sharepoint

Other
· FAQ
· Search
Contribute to This Site
· Submit Link
· Get Benefitted Sites
No Competition
One of our so-called competitors offers under 6 hours of video training for a whopping $219 (choke, gasp, spew - you could hire a private tutor for that price). Did I mention that they ship their training on VHS tapes (remember those?). Check out our 'Course Outlines' link above. We offer a 2-days of training (15 hours) for $54 (2 CDs at $29 each). You watch our videos from a CD/ROM on your computer. We also include real-world lab/assignments in each course.
Articles: Passing Command Line Arguments
Passing Command Line Arguments
'==========================================================================
' NAME: Arguments01.vbs 
' AUTHOR: Neal Walters 
' http://VBScript-Training.com 
'==========================================================================
Option Explicit 
Dim strFilename, strCommand 
strFilename = WScript.Arguments(0) 
strCommand = ucase(WScript.Arguments(1)) 

'validate input parameters 
If strCommand <> "COPY" And strCommand <> "MOVE" Then 
   WScript.Echo "This program requires two arguments: " & VbCrLf & _ 
                "CScript Arguments01.vbs  filename  cmd " & VbCrLf & _ 
                "  where cmd must be 'MOVE' or 'COPY'. "
   WScript.Echo                 
End If 

WScript.Echo "Filename=" & strFilename 
WScript.Echo "Command=" & strCommand 

'==========================================================================
' NAME: Arguments02.vbs 
' AUTHOR: Neal Walters 
' http://VBScript-Training.com 
'==========================================================================

For j = 0 To WScript.Arguments.Count - 1 
  WScript.Echo "j=" & j & "  Argument=" & WScript.Arguments(j)
Next 

Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Order Now - View Products


Default Shipping:
Phone: 214-403-6006
Our Sites
Software Training
XML-Online-Training.com
Biztalk-Training.com
SharePoint-Training.com
DotNet-AddOns-Training.com
CMSTrainingVideos.com

Language
LanguageLovers.com
Render time: 0.02 seconds 432,470 unique visits