forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


DOS command issues

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
pozzwali
Newbie


Joined: 04 Jun 2004
Posts: 4

PostPosted: Thu Sep 29, 2005 3:53 pm    Post subject: DOS command issues Reply with quote

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
View user's profile Send private message
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Thu Sep 29, 2005 4:02 pm    Post subject: Re: DOS command issues Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
pozzwali
Newbie


Joined: 04 Jun 2004
Posts: 4

PostPosted: Thu Sep 29, 2005 4:42 pm    Post subject: Reply with quote

@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
View user's profile Send private message
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Thu Sep 29, 2005 5:30 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Thu Sep 29, 2005 6:23 pm    Post subject: Reply with quote

heres another, don't know if this will help or not
Rolling Eyes
" = @chr(34)
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group