| |
ninjamaster
Posts: 107
Score: 0
Joined: 1/23/2007
Status: offline
|
Hi folks I am writing (infact completed apart from this one part that I would like to add but not essential!) a script to create a users home drive on a network server and change the permissions on the folder. Now all that works fine except I am wanting to echo back on screen what the settings are on the folder after they have been changed to prove they are set. I have used CACLS to change the permissions and I know that I can run CALCS again againsts the folder to list the current permissions. But how do I return the results from shell back to a MsgBox or similar. I know I could write to a text file then pump that into a box but was wondering (hoping) there was a way to have it put straight in. so far I have tried 'echo folder permissions back to screen strPerm = objShell.run "CACLS " & strPath <- BUT IT DOESN'T LIKE THIS LINE wscript.echo strPerm and 'echo folder permissions back to screen strPerm = "CACLS" & strPath wscript.echo <- WHICH OBVIOUSLY ECHOs "CACLS \\Server\folder" to screen :) Any pointers please? Many thanks
|
|