Go Back   Technology Questions > Software Questions > Operating System Questions > Windows XP

Windows XP Discuss the Microsoft Windows XP Operating System

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 03-08-2007, 04:00 PM
Calin Iaru
Tablet PC Guest
 
Posts: n/a
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 03-08-2007, 04:00 PM
Xploder HD Movie Player for PS3. Manage, convert and transfer media files between the PC and PS3.
  #2 (permalink)  
Old 03-08-2007, 04:30 PM
Larry(LJL269)
Tablet PC Guest
 
Posts: n/a
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 03-09-2007, 12:15 AM
Calin Iaru
Tablet PC Guest
 
Posts: n/a
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

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 On


Similar Threads
Thread Thread Starter Forum Replies Last Post
File size different on disk and copied file Why? Spikey Windows XP 11 01-23-2007 09:30 AM
Save file in Office12 in office11 format increases file size? Why? Siddharth Kale Microsoft Office 1 01-15-2007 11:19 AM
Internet Explorer 7 hides custom icon file path in shortcuts can't copy paste it anymore JDJ Windows XP 3 01-04-2007 06:24 AM
Windows backup: file size problems Nick P Windows XP 4 01-04-2007 05:23 AM
Excessive size of my Windows file Steve Windows XP 3 01-04-2007 01:54 AM


All times are GMT -8. The time now is 12:40 AM.


2003 - 2008 All Rights Reserved. Technology Questions

SEO by vBSEO 3.1.0