VCDQuality Forums
Show all 9 posts from this thread on one page

VCDQuality Forums (http://www.vcdhq.com/forum/index.php)
- Computer and Audio/Video help (http://www.vcdhq.com/forum/forumdisplay.php?forumid=56)
-- How can I make an automatic back up for files of a particular type? (http://www.vcdhq.com/forum/showthread.php?threadid=84720)


Posted by Mother on 03-05-2009 02:02 PM:

How can I make an automatic back up for files of a particular type?

The manual method:

1. Right-click on the C: drive and select 'search'
2. Search for filenames, for example, *.doc
3. When search has found all the Word documents (from hundreds of different directories), press ctrl+a and drag all the results to a backup folder, e.g. D:\backup.

How could I make this process automatic, e.g. as a batch file that I could add as a scheduled task?

(I know steps 1 and 2 can be shortened with a saved search.)


Posted by ntscuser on 03-05-2009 03:44 PM:

You mean you don't already save all documents to a documents folder?


Posted by Fuckmonkey on 03-05-2009 03:50 PM:

dir *.doc /b /s /x > C:\Output.txt
for /F "delims=" %%a in (C:\Output.txt) do (
xcopy /Y "%%a" C:\Blah
)

Copy to a batch file and run, should work.


Posted by Vampire on 03-05-2009 04:06 PM:

^^^ you'd need to make sure you run the batch file from the root of C: wouldn't you... or at least change the first line to...

dir c:\*.doc /b /s /x > c:\output.txt

....so you don't have to worry about where the batch file is run from.

__________________
Rectum? Damn near killed him!


Posted by Fuckmonkey on 03-05-2009 04:20 PM:

Ah shit yes I used the chdir command but forgot to note it here.

So it would start:
chdir c:\


Posted by Mother on 03-05-2009 04:44 PM:

Thanks - seems to be working.

The only minor problem is that if I have 2 files named doc1.doc in 2 different folders, one of them gets overwritten in the backup folder. I guess I'll just have to be careful with naming files.


Posted by Fuckmonkey on 03-05-2009 06:16 PM:

You could remove the Xcopy switch (/Y) to make it prompt, but you'd have to okay it yourself and make a note of the filename and location separately. I'm not sure of a way to append the name if it exists...


Posted by Bakkoda on 03-05-2009 08:52 PM:

get yourself the commandline version of Rar. Read up on using file lists. Back up multiple files with directories intact.


Posted by Neversoft on 03-12-2009 04:03 AM:

I was just browsing around looking for avian porn when I stumbled upon this slut... It looks quite powerful and reasonably straightforward, you might find it useful

__________________
Statistically... 9 out of 10 people actually enjoy gang rape.


All times are GMT. The time now is 05:02 PM.
Show all 9 posts from this thread on one page

Powered by: vBulletin Version 2.3.0
Copyright © Jelsoft Enterprises Limited 2000 - 2002.