cottage 0 Posted March 29, 2005 Can someone please give me a little help with the following? RunWait(@Comspec & " /c " & 'net user $username urp@ss /add') How can I use a string (such as $username) with the above command? I've tried various ways of quoting it, but can't seem to find the right method. Regards, Bill Share this post Link to post Share on other sites
PerryRaptor 1 Posted March 29, 2005 Try this... RunWait(@Comspec & " /c " & "net user " & $username & " urp@ss /add") - $username cannot be inside quotes - note the spaces after "...user " and before " urp@ss..." Think of it as stringing all together "one" + "two" + 3 + "four" Share this post Link to post Share on other sites
cottage 0 Posted March 29, 2005 Try this...RunWait(@Comspec & " /c " & "net user " & $username & " urp@ss /add")- $username cannot be inside quotes- note the spaces after "...user " and before " urp@ss..."Think of it as stringing all together "one" + "two" + 3 + "four"<{POST_SNAPBACK}>Exactly what I needed. Thank you !!! Share this post Link to post Share on other sites