Page 1 of 1 1
Topic Options
#57728 - 2001-07-30 09:16 AM SU!!
Saleem Offline
Hey THIS is FUN
*

Registered: 2001-04-11
Posts: 280
Loc: UAE
I converted a .bat file (for use of SU.exe utility) to a com file. When I run the file as it is from the location it works. But from the kix I am having trouble getting it to work!! any idea why the heck it does not work!!!
_________________________
“I’ll not change you unless you don’t have intention to change yourself” --H:Quran

Top
#57729 - 2001-07-30 10:04 AM Re: SU!!
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
my any idea: directory info.
is this com placed in the same directory as your script which is calling it?
_________________________
!

download KiXnet

Top
#57730 - 2001-07-30 10:22 AM Re: SU!!
Saleem Offline
Hey THIS is FUN
*

Registered: 2001-04-11
Posts: 280
Loc: UAE
the following is the error message:

SetDesktopSecurity error! (rc=1816)
Not enough quota is available to process this command.
CreateProcessAsUser error! (rc=267)
The directory name is invalid.
SetDesktopSecurity error! (rc=87)
The parameter is incorrect.

_________________________
“I’ll not change you unless you don’t have intention to change yourself” --H:Quran

Top
#57731 - 2001-07-31 03:07 PM Re: SU!!
Anonymous
Unregistered


Which version of SU.EXE are you using--The one that came in NT4 Reskit or Win2k Reskit?

I had problems with the Win2k one (like the message you have enclosed). I received the corrected versions from M'Soft.

Top
#57732 - 2001-07-31 04:20 PM Re: SU!!
Saleem Offline
Hey THIS is FUN
*

Registered: 2001-04-11
Posts: 280
Loc: UAE
The one with came from NT4 rekit, I'll pot the complete detailes

ch.bat
----
@echo off
echo password|su username -e -l -dn -w "%comspec% /e:1024 /c start \\naiavdho\installfiles\setup.exe /q+ /i"
exit
This batch file is working fine but when I change to COM file using bat2exec it is not working, Please help me.
when I

_________________________
“I’ll not change you unless you don’t have intention to change yourself” --H:Quran

Top
#57733 - 2001-08-01 09:32 AM Re: SU!!
Saleem Offline
Hey THIS is FUN
*

Registered: 2001-04-11
Posts: 280
Loc: UAE
NO help for me!!!
_________________________
“I’ll not change you unless you don’t have intention to change yourself” --H:Quran

Top
#57734 - 2001-08-01 05:15 PM Re: SU!!
Anonymous
Unregistered


Have you tried converting it to a .com file without the su options? The error messages you are getting seem to be related to the options your passing to su.

Convert the following to a .com file and see what happens.

code:

@echo off
echo password|su username "comspec% /e:1024 /c start \\naiavdho\installfiles\setup.exe /q+ /i"
exit


Top
#57735 - 2001-08-01 08:08 PM Re: SU!!
Saleem Offline
Hey THIS is FUN
*

Registered: 2001-04-11
Posts: 280
Loc: UAE
I tried taht too I am getting Bad command. Eeeeeeeeeeeeek (scraching head)
_________________________
“I’ll not change you unless you don’t have intention to change yourself” --H:Quran

Top
#57736 - 2001-08-01 09:04 PM Re: SU!!
Anonymous
Unregistered


Are you getting "Bad Command" when you try to run it from Kix or is this from a cmd prompt?

If this happens when you are trying to run it from kix, how exactly are you trying to run it from Kix?

Another thing, I've used SU.EXE several times (bat2com and encrypted), however I've always pointed it a mapped drive. I haven't ever pointed it to a UNC. So I don't know if there are any issues with that or not.

Top
#57737 - 2001-08-02 11:31 AM Re: SU!!
Saleem Offline
Hey THIS is FUN
*

Registered: 2001-04-11
Posts: 280
Loc: UAE
From the command prompt itself I am getting "bad command", I am gona try now with mapped drive,

Is there any iisue with "start" command and SU ?
If I remove start it seems it invoking the setup file from the location but the dos screen is not exiting I have to kill it manuely.

_________________________
“I’ll not change you unless you don’t have intention to change yourself” --H:Quran

Top
#57738 - 2001-08-02 06:39 PM Re: SU!!
Anonymous
Unregistered


It's possible there is an issue with "start". I've always kept things simple when using su to launch things (username,pass and file to run). Unfortunatly the documentation provided with su is not all that detailed.

If you call your .com file from Kix, (ie: shell "%comspec% /c M:\INSTALL\ie55sp1.com") the dos box should close with no problems.

Top
#57739 - 2001-08-02 09:26 PM Re: SU!!
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Have you tried prefacing your COM Object with different switches from CMD?

For example:

shell "CMD.EXE /K M:\INSTALL\ie55sp1.com"

Just an idea..

- Kent

_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#57740 - 2001-08-04 12:19 AM Re: SU!!
Saleem Offline
Hey THIS is FUN
*

Registered: 2001-04-11
Posts: 280
Loc: UAE
here mi Kix code
run "%comspec% /e:1024 /c start \\wntitd182\kix\ch.com"

Now this is working fineit i starting the com file and exiting, Now my problem is the com file itself
@echo off
echo saleem700|SU 000182 "%comspec% /e:1024 /c call \\naiavdho\installfiles\setup.exe /q+ /i" -cb -l -w
exit
when the setup is going on because of 16bit application the "command" promp window stay's at background, Suppose I use "start" insted of "call" com stop's working.

Please let me know if my wording is confusing.

_________________________
“I’ll not change you unless you don’t have intention to change yourself” --H:Quran

Top
#57741 - 2001-08-04 12:26 AM Re: SU!!
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
can't try it without your com, but can't you just do run "start \\wntitd182\kix\ch.com" or
run "\\wntitd182\kix\ch.com" or if they do not satisfy, call that script in the end of your whole script and then just before the call to ch.com do a setconsole("hide")?
_________________________
!

download KiXnet

Top
#57742 - 2001-08-03 04:24 PM Re: SU!!
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Saleem,

I would try Lonkero's ideas. You can also try START.. It looks like you are getting really close. This should be very nice for an enterprise-wide solution.

Thanks!

- Kent

_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
Page 1 of 1 1


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

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

Generated in 0.081 seconds in which 0.038 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