By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,885 Members | 1,469 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,885 IT Pros & Developers. It's quick & easy.

Is there a way to decompress a file programmatically?

P: n/a
It is not possible to change the compression status of a File using the
SetAttributes method.

Is there a way to decompress a file programmatically?

Of set the files properties so that the system decompresses the file?
Thanks

Jan 8 '08 #1
Share this Question
Share on Google+
4 Replies


P: n/a
On Jan 8, 6:36 pm, "Academia" <academiaNOS...@a-znet.comwrote:
It is not possible to change the compression status of a File using the
SetAttributes method.

Is there a way to decompress a file programmatically?

Of set the files properties so that the system decompresses the file?

Thanks
You can look at this:

http://thetrainerph.spaces.live.com/blog/cns!9F717AF2A2401F0F!521.entry

Hope this helps
Jan 8 '08 #2

P: n/a
I was hoping I could persuade the operating system to do it.
"kimiraikkonen" <ki*************@gmail.comwrote in message
news:fb**********************************@i12g2000 prf.googlegroups.com...
On Jan 8, 6:36 pm, "Academia" <academiaNOS...@a-znet.comwrote:
>It is not possible to change the compression status of a File using the
SetAttributes method.

Is there a way to decompress a file programmatically?

Of set the files properties so that the system decompresses the file?

Thanks

You can look at this:

http://thetrainerph.spaces.live.com/blog/cns!9F717AF2A2401F0F!521.entry

Hope this helps

Jan 8 '08 #3

P: n/a
"Academia" <ac************@a-znet.comschrieb:
Of set the files properties so that the system decompresses the file?
P/invoke 'DeviceIoControl' function + 'FSCTL_SET_COMPRESSION' operation:

FSCTL_SET_COMPRESSION Control Code (Windows)
<URL:http://msdn2.microsoft.com/en-us/library/aa364592(VS.85).aspx>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Jan 8 '08 #4

P: n/a
Thanks
"Herfried K. Wagner [MVP]" <hi***************@gmx.atwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
"Academia" <ac************@a-znet.comschrieb:
>Of set the files properties so that the system decompresses the file?

P/invoke 'DeviceIoControl' function + 'FSCTL_SET_COMPRESSION' operation:

FSCTL_SET_COMPRESSION Control Code (Windows)
<URL:http://msdn2.microsoft.com/en-us/library/aa364592(VS.85).aspx>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Jan 9 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.