Results 1 to 7 of 7

Thread: copy files very quickly

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2018
    Posts
    59

    copy files very quickly

    Hello everyone!

    I need a function, API or DLL to copy files very quickly. It has to be something beyond what VB6 already does.

    I like TeraCopy (https://codesector.com/teracopy) but they don't have something for developers.

    It can be something commercial, I don't mind paying.

    Thanks!

  2. #2
    Frenzied Member
    Join Date
    Feb 2003
    Posts
    1,807

    Re: copy files very quickly

    The only thing other than what vb6 offers I can think of is https://docs.microsoft.com/en-us/win...nbase-copyfile. Whether it's actually faster I don't know. Personally I don't see how you can get something faster than what is offered natively by the OS. Are there any other specific requirements other than it having to be fast?

  3. #3

    Thread Starter
    Member
    Join Date
    Oct 2018
    Posts
    59

    Re: copy files very quickly

    Looking at TeraCopy, I see that it achieves a much higher transfer rate.

    While I was having coffee, I imagined he was breaking the file into pieces and using multitreadings to copy the parts. Something similar with the technology used by downlodas managers.

    I need something fast and that works well for copying files over a network.

  4. #4
    Frenzied Member
    Join Date
    Dec 2012
    Posts
    1,470

    Re: copy files very quickly

    The file system is a cached system. The operating system hands off the data to the file system, which operates separately in the background. The actual writing of the data to disk cannot be made to operate any faster than the hardware is capable of. The only way to speed it up is to reduce the travel time of the head by using sequential areas of the disk (called defragging).

    J.A. Coutts

  5. #5
    New Member
    Join Date
    May 2021
    Posts
    5

    Re: copy files very quickly

    You guys are awesome for the support you all offer - simply GOATs

  6. #6
    PowerPoster
    Join Date
    Feb 2006
    Posts
    24,482

    Re: copy files very quickly

    You might consider this article SMB Compression: Deflate your IO

    Hi folks, Ned Pyle guest-posting today about SMB Compression, a long-awaited option coming to Windows, Windows Server, and Azure. As you know, the growth of cheap storage and plentiful network bandwidth over the past decade had an immediate effect: files got bigger and less efficient . SMB Compression tackles this by adding optional inline whitespace compression to file transfers, removing congestion and copy time from offenders like virtual machine disks, raw graphics, scientific data, and other large file formats.
    The first usage options of SMB Compression will be:

    Hyper-V Live Migration with SMB
    Robocopy
    Xcopy
    The question I typically get at this point is: when is this coming? I don’t have a good answer yet, but as we get firmer, I will get more details out there. This is a key technology for Azure Files and Windows Server computing, so all I can say is that it’s coming. As you can see from the demo, we’re far along. Check back at the IT Ops Talk and FileCab blogs for more details and info on Insider Previews this year. We’re working with third parties to offer this option – ask your SMB vendors about their plans.

    This is already in Windows 10, and it doesn't sound like obsolete downlevel versions of Windows will get this improvement.

    Good news it has been backported to

    2004 / 20H2
    1903 / 1909
    1809 /Server 2019 no news yet.
    Last edited by dilettante; May 12th, 2021 at 10:42 PM.

  7. #7
    PowerPoster
    Join Date
    Feb 2006
    Posts
    24,482

    Re: copy files very quickly

    Code:
    C:\>xcopy /?
    Copies files and directory trees.
    
    XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/V] [/W]
                               [/C] [/I] [/Q] [/F] [/L] [/G] [/H] [/R] [/T] [/U]
                               [/K] [/N] [/O] [/X] [/Y] [/-Y] [/Z] [/B] [/J]
                               [/EXCLUDE:file1[+file2][+file3]...] [/COMPRESS]
    
      source       Specifies the file(s) to copy.
      destination  Specifies the location and/or name of new files.
      /A           Copies only files with the archive attribute set,
                   doesn't change the attribute.
      /M           Copies only files with the archive attribute set,
                   turns off the archive attribute.
      /D:m-d-y     Copies files changed on or after the specified date.
                   If no date is given, copies only those files whose
                   source time is newer than the destination time.
      /EXCLUDE:file1[+file2][+file3]...
                   Specifies a list of files containing strings.  Each string
                   should be in a separate line in the files.  When any of the
                   strings match any part of the absolute path of the file to be
                   copied, that file will be excluded from being copied.  For
                   example, specifying a string like \obj\ or .obj will exclude
                   all files underneath the directory obj or all files with the
                   .obj extension respectively.
      /P           Prompts you before creating each destination file.
      /S           Copies directories and subdirectories except empty ones.
      /E           Copies directories and subdirectories, including empty ones.
                   Same as /S /E. May be used to modify /T.
      /V           Verifies the size of each new file.
      /W           Prompts you to press a key before copying.
      /C           Continues copying even if errors occur.
      /I           If destination does not exist and copying more than one file,
                   assumes that destination must be a directory.
      /Q           Does not display file names while copying.
      /F           Displays full source and destination file names while copying.
      /L           Displays files that would be copied.
      /G           Allows the copying of encrypted files to destination that does
                   not support encryption.
      /H           Copies hidden and system files also.
      /R           Overwrites read-only files.
      /T           Creates directory structure, but does not copy files. Does not
                   include empty directories or subdirectories. /T /E includes
                   empty directories and subdirectories.
      /U           Copies only files that already exist in destination.
      /K           Copies attributes. Normal Xcopy will reset read-only attributes.
      /N           Copies using the generated short names.
      /O           Copies file ownership and ACL information.
      /X           Copies file audit settings (implies /O).
      /Y           Suppresses prompting to confirm you want to overwrite an
                   existing destination file.
      /-Y          Causes prompting to confirm you want to overwrite an
                   existing destination file.
      /Z           Copies networked files in restartable mode.
      /B           Copies the Symbolic Link itself versus the target of the link.
      /J           Copies using unbuffered I/O. Recommended for very large files.
      /COMPRESS    Request network compression during file transfer where
                   applicable.
    
    The switch /Y may be preset in the COPYCMD environment variable.
    This may be overridden with /-Y on the command line.
    
    C:\>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width