Home Forums Gamescan Chat42 About
* Login   * Register * FAQ    * Search
It is currently Mon 07-21-2025 2:37PM

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: VBScript
PostPosted: Wed 11-08-2006 7:32PM 
Offline
Brigadier General
User avatar

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.

Thanks for your help.


Top
 Profile E-mail  
    
 Post subject:
PostPosted: Thu 11-09-2006 5:26PM 
Offline
Brigadier General
User avatar

Joined: Mon 09-06-2004 7:51PM
Posts: 1916
Location: The B Barn

Source: Off Campus
nm, i got it


Top
 Profile E-mail  
    
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

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

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group