Groups | Blog | Home
all groups > inetserver asp components > november 2003 >

inetserver asp components : Question: need to lauch external program as an administrator


Ray at <%=sLocation%
11/21/2003 10:17:32 AM
Are you sure that it's a permissions issue, as opposed to something caused
by the fact that you aren't using a full path to the .bat file?

I suppose you could create a batch file that uses su.exe from the Resource
Kit and have that batch file run the other batch file as the local admin.

Ray at work

[quoted text, click to view]

Gregos
11/21/2003 11:54:02 AM
Hello,
I need an ASPobject that will enable me to lauch an external program, like a
..BAT file for example, under the Administrator account.
If I launch a xxx.BAT file using WSCRIPT.SHELL, I have "permission denied"
errors under Windows XP that does not permit me to do this (view following
code...)

Set oScript = Server.CreateObject("WSCRIPT.SHELL")
Call oScript.Run ("createzipfile.bat", 0, True)
--------------> "permission error", under Windows XP (works fine under
Windows NT !)

Do you know a DLL object that could enable me to overpass this issue ?
Thanks in advance for your answer,
Phil

Philippe Gregoire
greg@oceanic-prod.com
www.oceanic-prod.com

AddThis Social Bookmark Button