Page 1 of 1 1
Topic Options
#3520 - 2000-07-17 10:06 AM SU.exe
attiahia Offline
Hey THIS is FUN

Registered: 2000-03-27
Posts: 268
please help
in the same batch The first statement work fine while the second doesn’t, it gave the following error message "logon failure unknown user name or bad password"
i am using the same user id and the same password. please help.

cd\
c:
cd ntreskit

:statement 1
echo 123456|su attiahia "command line"

:statement 2
set su_username=attiahia
set su_password=123456
su "%comspce% command line"

thank you



Top
#3521 - 2000-07-19 12:27 AM Re: SU.exe
BoxKite Offline
Da Box
*****

Registered: 2000-05-17
Posts: 282
Loc: Vacaville,CA,USA
Change:
code:
su "%comspce% command line"


to
code:
su "%comspec% /c command line"

_________________________
Box
FACTA NON VERBA

Top
#3522 - 2002-04-10 08:54 PM Re: SU.exe
Chris Bingel Offline
Fresh Scripter

Registered: 2002-04-09
Posts: 22
Loc: Baltimore, MD
Now why, when I use the same code as in example 2, does it tell me that it's out of environment space when it tries to set the global variables?

using bat2exec v2

Top
#3523 - 2002-04-10 09:26 PM Re: SU.exe
Chris Bingel Offline
Fresh Scripter

Registered: 2002-04-09
Posts: 22
Loc: Baltimore, MD
Please ignore...typing before thinking is a bad thing.
Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1955 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.155 seconds in which 0.093 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org