Joined: Mon 09-06-2004 7:51PM Posts: 1916 Location: The B Barn
Source: Off Campus
name.vbs
Code:
strFirst = WScript.arguments(0) strLast = "Smith"
WScript.Echo strFirst WScript.Echo strLast
With the command line"
Code:
WScript.exe name.vbs Joe
I'm wanting to get the first name as a command line argument and have the lastname be a static variable. That should output Joe and Smith separately, but it outputs {NULL} and Smith.
Users browsing this forum: No registered users and 1 guest
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