|
| | |||||||
| Windows XP Discuss the Microsoft Windows XP Operating System |
| | LinkBack | Thread Tools |
| |||
| Copy a file with Windows Explorer reserves the file size in advanc Hi all, Ctrl + V a file into the destination folder and it can be noticed that the destination file has the size equal to the source file size. For a large source file, this is not possible to achieve with normal copy operations. The advantage is that, by reserving the requested amount of space, the file manager can write a new file starting from the position where the current destination ends; it also reduces fragmentation, and there may be other benefits. I would like to integrate this feature into an application. What is the name of the Win32 API that does this? I could not find a function that achieves this. Thanks, Calin |
| |||
| Re: Copy a file with Windows Explorer reserves the file size in advanc I thought it did- copy 200MB file it will be unfragmented unless 200MB continuous spac cant be found. Defrag b4 u do it tho. Just my 2¢ worth. Larry On Thu, 8 Mar 2007 15:54:07 -0800, Calin Iaru <CalinIaru@discussions.microsoft.com> wrote: >Hi all, > > Ctrl + V a file into the destination folder and it can be noticed that the >destination file has the size equal to the source file size. For a large >source file, this is not possible to achieve with normal copy operations. The >advantage is that, by reserving the requested amount of space, the file >manager can write a new file starting from the position where the current >destination ends; it also reduces fragmentation, and there may be other >benefits. > I would like to integrate this feature into an application. What is the >name of the Win32 API that does this? I could not find a function that >achieves this. > > Thanks, > Calin Any advice is my attempt to contribute more than I have received but I can only assure you that it works on my PC. GOOD LUCK. |
| |||
| RE: Copy a file with Windows Explorer reserves the file size in advanc There are at least 2 suspects: CopyFile and SHFileOperation(). I think the latter is the same as the one Windows Explorer uses. However, this would be a workaroud. For those of you who don't understand my question, I rephrase: is there a way to create a new file that and set its size? |
| Bookmarks |
| Thread Tools | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Use Windows Explorer to copy a file/folder with its path structure | hmm | Windows XP | 4 | 10-17-2008 05:46 AM |
| Need Batch file to rename file based on file size | Brandon | Windows XP | 14 | 10-17-2008 01:45 AM |
| Internet Explorer 7 temp file size | vstar | Internet Explorer | 5 | 04-24-2008 02:20 PM |
| Explorer crash after copy a file, StackHash_8d13 | Peter Flindt | Windows Vista | 3 | 09-21-2007 08:20 AM |
| File Copy and Paste issue - Windows Explorer | Woblit | Windows Vista | 9 | 04-17-2007 04:45 AM |
| New To Technology Questions? | Do You Need Help with Your Computer or Device? | Do You Need Help with this site? |