AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

XXCOPY -- Powerhouse File/Folder Copier/Mover [CMD]

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Utilities & Resources
View previous topic :: View next topic  
Author Message
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Fri Feb 10, 2006 5:08 pm    Post subject: XXCOPY -- Powerhouse File/Folder Copier/Mover [CMD] Reply with quote

I have not seen trace of this powerful utility in this forum section...

XXCOPY started as a clone of Dos' XCOPY, with more functionnalities.
Actually, it has hundred of command line switches, which is a bit overwhelming, but that is what make the power of this file management utility.

As the name implies, it can be used to copy files and directories. It can copy whole directory trees, with lot of options (copy only the read-only files, for example), etc. It can also alter file attributes (read, date/time, etc.), synchronize directories, etc.

I won't detail here the functionnalities, just go to the site and see if it can solve some of your problems.

Of course, the program is free. It has a Pro version, for even more advanced features, like working over a network or logging.

[EDIT] Followed BoBo's good advice on how to make useful titles for this section... seen in another thread (nomousy).
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Last edited by PhiLho on Sun Feb 12, 2006 7:47 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
garry



Joined: 19 Apr 2005
Posts: 1182
Location: switzerland

PostPosted: Sat Feb 11, 2006 3:27 pm    Post subject: Reply with quote

example, saves all what I changed on desktop to second drive V$= drive H:
longtime not worked on it , but use every day when shutdown the computer
here a part from old script gwbasic shutdown.bas (or just use a batch script or AHK)
Code:
SH$="XXCOPY C:\Dokume~1\garry\Desktop\*.* "+V$+"\Desktop\ /BZX /Q1 /S /E /I /Y /H"
Back to top
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Sun Feb 12, 2006 7:40 am    Post subject: Reply with quote

Thanks for the example, a bit cryptic Smile
I got the habit to copy a line from the doc for each switch I use, so I can understand what it does even opening the file years later...
I maintain some batch files to do various backup tasks:

Code:
:: /CLONE: synchronize destination on source, deleting files if needed
:: /YY: answer automatically Yes to all prompts
:: /ZS: skip the banner information
:: /Q3: very quiet (no listing of files)

:backup
:: /AXR: backup only files without the Read-Only attribute set.
:: /EX: read a list of files/directories not to backup
xxcopy "F:\_Work\" X:\Work\ /AXR /EXDev_NoBackup.lst /CLONE /YY/ZS/Q3
:: /X: file patterns not to backup
xxcopy "F:\Work Tests\CNS2\Scripts\" X:\Tests\SilkTest\ /X*.to /X*.ino /CLONE /YY/ZS/Q3
xxcopy "F:\Work Tests\" X:\Tests\config\ /YY/ZS/Q3
xxcopy "F:\Work Tests\W4T\" X:\Tests\W4T\  /EXDev_NoBackup.lst /CLONE /YY/ZS/Q3

Note: in batch files, :backup is a label (I use it to mark a section, I have set up my text editor, SciTE, to highlight the whole line), and :: is often used for comments (ignored by batch processor).

I backup file without read-only attribute because tools like CVS (source repositories) usually put all files read-only, except those we asked to work on it. So read-only files are already in a repository, no need to backup them. Much faster.

Dev_NoBackup.lst is a text file containing a list of file pattern not to backup:
Code:
:: xlist for the /EX switch of XXCOPY
:: This is the list of development files NOT to backup (created files)
*.exe
*.dll
*.res
*.obj
*.exp
*.ncb
*.opt
*.pdb
*.pch
*.sbr
*.bsc
*.aps
*.idb
*.ilk
*.tlb
*.map
*.plg
*.lnk
srcsrv.txt
x_nt
(mostly files generated by Visual C++).

Note that XXCOPY freeware restricts network operations (with paths like \\server\xyz), but if they are mapped to L:\xyz drives, it works smoothly.
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
garry



Joined: 19 Apr 2005
Posts: 1182
Location: switzerland

PostPosted: Sun Feb 12, 2006 9:03 am    Post subject: Reply with quote

merci Philippe,
copied your notice to XXCOPY_manual.txt , should work on it
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Utilities & Resources All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group