AutoHotkey Community

It is currently May 27th, 2012, 1:02 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: February 10th, 2006, 6:08 pm 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
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).

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Last edited by PhiLho on February 12th, 2006, 8:47 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 11th, 2006, 4:27 pm 
Offline

Joined: April 19th, 2005, 10:26 am
Posts: 2250
Location: switzerland
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"


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 12th, 2006, 8:40 am 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
Thanks for the example, a bit cryptic :-)
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.

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 12th, 2006, 10:03 am 
Offline

Joined: April 19th, 2005, 10:26 am
Posts: 2250
Location: switzerland
merci Philippe,
copied your notice to XXCOPY_manual.txt , should work on it


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group