D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] OT: Why oh why windows at work? . . . File copying

 

This link might be of use for you regarding usage of xcopy:

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-
us/xcopy.mspx?mfr=true


Kind regards as always.

  

Ryan Carson - Director

Refresh Creations Ltd

---------------------

Web: http://www.refreshcreations.co.uk/

Tel: 0845 09 42 987

Fax: 0870 80 30 989

-----Original Message-----
From: list-bounces@xxxxxxxxxxxxx [mailto:list-bounces@xxxxxxxxxxxxx] On
Behalf Of Terry Hill
Sent: 09 November 2007 13:07
To: list
Subject: [LUG] OT: Why oh why windows at work? . . . File copying

Hi Folks,

Here's an annoying one...I have 502 folders:

c:/a bit of a path/dir1
containing various files, amongst them 20-30 jpg's

c:/a bit of a path/dir2
containing various files, amongst them 20-30 jpg's

etc.

I need to copy them like so:

d:/20071109/backup1
containing 1000 jpg's found amongst the above

d:/20071109/backup2
containing 1000 jpg's found amongst the above

etc (but with a lot less directories and nothing but jpg's)

the best I have achieved:

I can manually mess about for ages dragging bunches of files from
windows search, but this takes time and it looks like I'll have to do
this quite often, so a bat file would be a timesaver.  All the files
will always be in the same place (source).

using xcopy or robocopy:

d:/20071109/dir1  <----old directory name from source
20-30 jpg's from the source folder over on c:

d:/20071109/dir2
20-30 jpg's from the source folder over on c:

etc.

Under Linux, probably not such a big deal, what with the ability to |
the results of one op to the next etc, I'm sure I'd work something
out.

Any ideas without having to delve into filesystemobject and *shudders*
visual basic?  Have I missed something mind-numbingly simple that will
have me pulling my eyes out with a corkscrew?

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.15.26/1119 - Release Date: 08/11/2007
17:55
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.15.26/1119 - Release Date: 08/11/2007
17:55
 


-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html