Question : Windows has blocked access to these files to help to protect your computer ...

Hi,

"Windows has blocked access to these files to help to protect your computer" ... but I don't want to be protected!!!

I have written a compression/decompression (zip/unzip) program to deliver highly sized reports in text format to some of our sales offices -> the process is completely automated and starts with a SQL Server Agent Job -> some stored procedures query for data -> export it into TXT files -> when finished some module cares for file compression to ZIP format -> when finished another module attaches the ZIP file to an email -> last step is that emails are send ... all working fine, all perfect ... just ... when anyone on a Windows 2003 Server system tries to open the ZIP with the standard "Compressed Folder" utility it looks empty (still having the expected size) ... telling the utility to "Extract All", that anoying message pops up ... instead, opening it with WinRAR (for example) works fine ...

What can I do about this (at file creation!!!) -> I have to deliver it in basic ZIP format as there is no tool to deliver with the zipped reports -> it has to be opened also with the "Windows Compressed Files" utility ...


Best regards,
Raisor

Answer : Windows has blocked access to these files to help to protect your computer ...

Bah. The answer (assuming you're using SharpZipLib) was staring me in the face at this link:

http://community.sharpdevelop.net/forums/thread/4532.aspx

In my opinion, SharpZipLib shouldn't allow you to programatically create an invalid filename/path, but if follow the code and its subsequent fix (in the link above), you should be OK.

Random Solutions  
 
programming4us programming4us