Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create XP compressed folder in VFP
Message
From
24/02/2004 18:07:52
 
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00880426
Message ID:
00880536
Views:
45
sorry it took so long <g>

>Exactly! The GUI knows how to deal with it, but not the command line or internal COPY commands.
>
>
>>Ok, i think i understand you now: you don't whant to work with ntsf compressed folder, you whant the 'zip folder'.
>>
>>hmm, i don't think the 'zip folder' is a folder at all. i think the drag-drop you were discribing earlier is a nice feuture from the explorer where in the background the zip.dll is beeing called to ADD a file to the zip file.
>>
>>
>>>Yes, that is an NTFS compressed folder. No problem there. It's the zipped "folders" that it can't copy to.
>>>
>>>
>>>>well...
>>>>i did the following successfully from the vfp6 command window
>>>>copy file c:\test.txt to c:\windows\$NtServicePackUninstall$\test.txt
>>>>
>>>>"$NtServicePackUninstall$" is 1 of those compressed folders i was talking about.
>>>>
>>>>
>>>>>These are 2 very different animals. Try opening a folder (or on your desktop) right-clicking and choosing New and then at the bottom you should see "Compressed (zipped) folder". The problem seems to be that only the GUI knows its not really a folder, but just a special file type and deals with it accordingly. The COPY commands, etc., don't know what to do with it.
>>>>>
>>>>>
>>>>>>but i don't think that the "XP compressed folder" you refer to is a zipped folder. maybe i am missunderstanding you, but on my xp box in the windows folder there are a bunch of compressed folders, which are not zipped. because of the way i have setup my explorer they apear in blue. when i go to propperties on those folders, in the advanced attribute section, there are options for compress and encryped.
>>>>>>
>>>>>>again, maybe i am missunderstanding you.
>>>>>>
>>>>>>
>>>>>>
>>>>>>>Hi Gunnar,
>>>>>>>
>>>>>>>I looked at that, but that applies to a different compression than a zipped folder. That's NTFS file compression, not zip compression
>>>>>>>
>>>>>>>Thanks anyways.
>>>>>>>
>>>>>>>>hello Fred
>>>>>>>>
>>>>>>>>look in the msdn help at:
>>>>>>>>
>>>>>>>>DeviceIoControl (kernel32.dll)
>>>>>>>>- FSCTL_SET_COMPRESSION
>>>>>>>>
>>>>>>>>and
>>>>>>>>
>>>>>>>>"Compact: Compresses and Uncompresses NTFS Files and Folders"
>>>>>>>>
>>>>>>>>(i have vfp 6, so i don't know if those helps are the same in vfp8)
>>>>>>>>
>>>>>>>>hope that helps.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>>Can anybody tell me how you would create an XP compressed folder from within VFP?
Previous
Reply
Map
View

Click here to load this message in the networking platform