| |
Tnguyen81
Posts: 7
Score: 0
Joined: 8/8/2006
Status: offline
|
intRunError = objShell.Run("%COMSPEC% /k Echo Y| cacls " _ & strDirectory & " /t /c /g Administrators:F "_ & """Domain Admins"":F " & strUsername & ":C " & "SYSTEM:F" ,2,True) thats my vbscript for cacls to set permissions. The problem I am having now is that if I go %COMSPEC% /c (it closes the window) the permissions never get set... but if I got %COMSPEC% /k (leaves the window open) the permissions do get set properly.. I'm trying to figure out why I'm having this problem.. I dont know why its doesn't work when it closes manually.. Any help? I'm stumpped and annoyed... who needs sum
|
|