VCDQuality Forums
Here you can view your subscribed threads, work with private messages and edit your profile and preferences Frequently Asked Questions Search Home  
VCDQuality Forums : Powered by vBulletin version 2.3.0 VCDQuality Forums > Off Topic > Computer and Audio/Video help > How can I make an automatic back up for files of a particular type?
  Last Thread   Next Thread
Author
Thread Post New Thread    Post A Reply
Mother
Aug 2003


Bitter, miserable twat.

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.)

Report this post to a moderator | IP: Logged

Old Post 03-05-2009 02:02 PM
Mother is offline Click Here to See the Profile for Mother Click here to Send Mother a Private Message Visit Mother's homepage! Find more posts by Mother Add Mother to your buddy list Edit/Delete Message Reply w/Quote
ntscuser
May 2005


Mimzy

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

Report this post to a moderator | IP: Logged

Old Post 03-05-2009 03:44 PM
ntscuser is offline Click Here to See the Profile for ntscuser Find more posts by ntscuser Add ntscuser to your buddy list Edit/Delete Message Reply w/Quote
Fuckmonkey
Jan 2009


Will bottom for marmosets

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.

Report this post to a moderator | IP: Logged

Old Post 03-05-2009 03:50 PM
Fuckmonkey is offline Click Here to See the Profile for Fuckmonkey Click here to Send Fuckmonkey a Private Message Find more posts by Fuckmonkey Add Fuckmonkey to your buddy list Edit/Delete Message Reply w/Quote
Vampire
Jan 2005


Administrator

^^^ 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!

Report this post to a moderator | IP: Logged

Old Post 03-05-2009 04:06 PM
Vampire is offline Click Here to See the Profile for Vampire Click here to Send Vampire a Private Message Find more posts by Vampire Add Vampire to your buddy list Edit/Delete Message Reply w/Quote
Fuckmonkey
Jan 2009


Will bottom for marmosets

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

So it would start:
chdir c:\

Report this post to a moderator | IP: Logged

Old Post 03-05-2009 04:20 PM
Fuckmonkey is offline Click Here to See the Profile for Fuckmonkey Click here to Send Fuckmonkey a Private Message Find more posts by Fuckmonkey Add Fuckmonkey to your buddy list Edit/Delete Message Reply w/Quote
Mother
Aug 2003


Bitter, miserable twat.

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.

Report this post to a moderator | IP: Logged

Old Post 03-05-2009 04:44 PM
Mother is offline Click Here to See the Profile for Mother Click here to Send Mother a Private Message Visit Mother's homepage! Find more posts by Mother Add Mother to your buddy list Edit/Delete Message Reply w/Quote
Fuckmonkey
Jan 2009


Will bottom for marmosets

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...

Report this post to a moderator | IP: Logged

Old Post 03-05-2009 06:16 PM
Fuckmonkey is offline Click Here to See the Profile for Fuckmonkey Click here to Send Fuckmonkey a Private Message Find more posts by Fuckmonkey Add Fuckmonkey to your buddy list Edit/Delete Message Reply w/Quote
Bakkoda
Jul 2002


Jigglyjunk

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

Report this post to a moderator | IP: Logged

Old Post 03-05-2009 08:52 PM
Bakkoda is offline Click Here to See the Profile for Bakkoda Click here to Send Bakkoda a Private Message Find more posts by Bakkoda Add Bakkoda to your buddy list Edit/Delete Message Reply w/Quote
Neversoft
May 2002


Admin?

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.

Report this post to a moderator | IP: Logged

Old Post 03-12-2009 04:03 AM
Neversoft is offline Click Here to See the Profile for Neversoft Click here to Send Neversoft a Private Message Find more posts by Neversoft Add Neversoft to your buddy list Edit/Delete Message Reply w/Quote
All times are GMT. The time now is 03:30 PM. Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread

Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

< Contact Us - www.vcdhq.com >

Powered by: vBulletin Version 2.3.0
Copyright ©2000, 2001, Jelsoft Enterprises Limited.