.NET - Using Shell function to unzip a file raises a security error
Posted on 2008-10-20
I have a FileSystemWatcher that watches for files in a directory.
When a zip file lands in there, i execute winzip 11 using the following command;
Shell("C:\Program Files\WinZip\WINZIP32.EXE -e " & FilePath & " C:\Unzipped\", AppWinStyle.Hide, True)
When this command executes, .NET does not fall over. Instead, a message pops up FROM WINZIP (not from .NET - no exception is raised);
"Could not open C:\Test.zip
Probable cause: file sharing or file permissions problem."
I need to be able to call winzip under the administrator account - which seems strange because this application runs under the administrator account.