QB64 Phoenix Edition
The Copyit Utility - Printable Version

+- QB64 Phoenix Edition (https://qb64phoenix.com/forum)
+-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1)
+--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3)
+---- Forum: Utilities (https://qb64phoenix.com/forum/forumdisplay.php?fid=8)
+---- Thread: The Copyit Utility (/showthread.php?tid=818)



The Copyit Utility - eoredson - 08-27-2022

Documentation public domain 10/15/2025:

Copyit v9.0a: File copy utility (PD 2025):

Copyit is a small yet powerful replacement to the DOS Copy and Xcopy commands.

"If it can't be copied with Copyit, it probably doesn't need to be copied."


Copyit55.zip for VBdos
Copyv9r7.zip for QB64


RE: The Copyit Utility - SMcNeill - 08-27-2022

robocopy is the tool for copying files and such, if you're on Windows. https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy


RE: The Copyit Utility - eoredson - 08-29-2022

(08-27-2022, 06:42 AM)SMcNeill Wrote: robocopy is the tool for copying files and such, if you're on Windows.  https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy

Wow! I read through the docs for Robocopy and all I can say is it contains more stuff than I can even touch.. Wink


RE: The Copyit Utility - Coolman - 08-29-2022

for linux rsync is the best.


RE: The Copyit Utility - eoredson - 04-17-2025

This new code for version v9.0a of the copyit utility is posted here:

Code: (Select All)
 v9.0a r1.0a updates:
    Adds /zc to not copy compressed files.
    Adds /ze to not copy encrypted files.
    Adds /xc to copy only compressed files.
    Adds /xe to copy only encrypted files.

 v9.0a r2.0a updates:
    Now preserves unicode filenames.
    Now also preserves unicode directories.
    Adds break option to break trap.

 v9.0a r3.0a updates:
    Adds quit option to disk full error.
    Now copies ambiguated unicode filenames.
    Fixes switches in moreprompt.

 v9.0a r4.0a updates:
    Adds skip all to copy prompt.
    Extends moreprompts to be verbose.
    Adds /-5 switch to skip all.

 v9.0a r5.0a updates:
    Repairs call to parameter in CreateDirectory()
    Successful test with large database using /b3 and with
      source/dest both netpath excluding *.* to copy
      directory structure only.

 v9.0a r6.0a updates:
    Fixes memory leak in CreateDirectory()
    Only attempts to createdir if not exist.

 v9.0a r7.0 updates:
    Fixes flags in excluded filelists
    Only copies directories with specified files using /b3

 v9.0a r8.0 updates:
    Added check for error x3E6 during CreateDir
    Adds Startdir$ for default directory
    Edits Curdir$ in Readconfig

 v9.0a r9.0 updates:
    Adds custom command$ function.
    Removes call to SetCurrentDirectory.

LOC: 6,788