On Feb 26, 2007, at 12:11 PM, Tim Jones wrote:

> Here's a sure way (warning to shell haters - involves shell and  
> sudo...)
>
> Prompt user for admin password:
>
>       Dim sh As New Shell
>
>       Sh.Execute "echo " + thePassword + " | sudo -S /usr/bin/true"
>       Sh.execute "sudo rm -rf " + f.ShellPath
>       Sh.Execute "sudo -K"

Update - is you're only looking to delete the folder's contents,  
change the second line to:

        Sh.execute "sudo rm -rf " + f.ShellPath + "/*"

Tim
--
Tim Jones
[EMAIL PROTECTED]



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to