• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

ASPExec.dll Access is Denied?!

sheryls

Junior Member
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.
 
Back
Top