I'm trying to use the SHELL command in Visual Basic to set folder security on a remote drive.
Shell("cacls ""\\ukpreflr1\preston1$\" & PNumber.Text & "\01 Quotations"" /E /P Domain\Proj-" & PNumber & ":R")
This command is repeated to set the security on another 30 folders...
This works fine, however, i am asked "are you sure" on several of the folders.. i do i pass a "Y" to the shell? In Vbscript i could use "echo Y|cacls..." but this won't work in Visual for some reason... Anybody got any idea's?
Secondly, whilst each command is processed, the shell window sits on top of the VB Application, how can i stop this so that the status i created on the Application can be seen?