ASPExec.dll Access is Denied?!

sheryls

Junior Member
Mar 22, 2002
3
0
0
Hey all!

I have a problem - i'm using win2kPro and i'm writing an asp page to set up webpages/ftp user accounts. everything is great except the permissions on the ftp user's folders - nothing will be set! i'm using cacls with ASPExec.dll like this:

Set Executor = Server.CreateObject("ASPExec.Execute")
Executor.Application = "cmd"
Executor.Parameters = " /c cacls C:\Inetpub\" & domain & "\members\" & username & " /T /E /P " & UserName & "@" & domain & ":C"

intResult = Executor.ExecuteDosApp

...this actually executes (where as WScript wouldnt even think of doing this when i tried it) but i get Access is Denied. i tried everything ot set the access up, i'm the admin on the box and i have to login to this page as me to use this utility, so that's not a problem. i even tried setting Everyone to admin (not as a fix but just as a test) to make sure that it's not REALLY an access problem.

if i take the string constructed in Executor.Parameters and paste it in a cmd, it works fine. what's going on?? anyone? bueller?! :)

-=>sheryljean.