PC Review


Reply
Thread Tools Rate Thread

Copy a file with Windows Explorer reserves the file size in advanc

 
 
=?Utf-8?B?Q2FsaW4gSWFydQ==?=
Guest
Posts: n/a
 
      8th Mar 2007
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
 
Reply With Quote
 
 
 
 
Larry(LJL269)
Guest
Posts: n/a
 
      9th Mar 2007
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
<(E-Mail Removed)> 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.
 
Reply With Quote
 
=?Utf-8?B?Q2FsaW4gSWFydQ==?=
Guest
Posts: n/a
 
      9th Mar 2007
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?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PST - File Size display in windows explorer Nadine Microsoft Outlook Discussion 3 25th Dec 2009 06:07 PM
Improve Explorer File Copy Cache Size The One Windows XP General 6 3rd Jun 2006 07:54 AM
Windows Explorer file size display =?Utf-8?B?Z2FyeW1lMg==?= Windows XP Configuration 1 15th Feb 2006 12:29 PM
File Size in Windows Explorer Mort Windows XP General 2 14th Aug 2003 07:31 PM
File Size in Windows Explorer Mort Windows XP Help 1 13th Aug 2003 10:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:25 AM.