| View previous topic :: View next topic |
| Author |
Message |
pozzwali Newbie
Joined: 04 Jun 2004 Posts: 4
|
Posted: Thu Sep 29, 2005 3:53 pm Post subject: DOS command issues |
|
|
I am attempting to use this line of code
RUNH net users %username% ""
The problem I am encountering is I can not get VDS to stop recognizing the %u in %username% as a variable... Could someone tell me the proper syntax I have been unable to find it so far.
Thanks
Pozzwali
________
buy air one vaporizer
Last edited by pozzwali on Tue Feb 01, 2011 4:11 am; edited 1 time in total |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Thu Sep 29, 2005 4:02 pm Post subject: Re: DOS command issues |
|
|
| pozzwali wrote: | I am attempting to use this line of code
RUNH net users %username% ""
The problem I am encountering is I can not get VDS to stop recognizing the %u in %username% as a variable... Could someone tell me the proper syntax I have been unable to find it so far.
Thanks
Pozzwali |
Try filling a variable with the results of @env(%username%) and then
passing that variable in place of %username%. You may need to remove
the leading '%' and trailing '%' from '%username%' when calling the
@env() function. _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
pozzwali Newbie
Joined: 04 Jun 2004 Posts: 4
|
Posted: Thu Sep 29, 2005 4:42 pm Post subject: |
|
|
@ENV worked great but now the syntax on this line seems to be having issues
RUNH net users %U ""
the net users %U ''" should set said username password blank but I notice that the first quotation is colored black and the last quotation is colored blue?
it functions fine with
RUNH net users %U "whatever"
thanks again
________
colorado dispensaries
Last edited by pozzwali on Tue Feb 01, 2011 4:11 am; edited 1 time in total |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Thu Sep 29, 2005 5:30 pm Post subject: |
|
|
Instead of passing "" as the last parameter to your command line, try
passing @chr(0), which is NULL in other programming languages. I'm not
at my computer, so I cannot test this to see if it works. _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Thu Sep 29, 2005 6:23 pm Post subject: |
|
|
heres another, don't know if this will help or not
" = @chr(34) |
|
| Back to top |
|
 |
|