PC Review


Reply
 
 
Senior Member
bodhi's Avatar
Join Date: Mar 2004
Location: York
Posts: 1,571
 
      8th Jun 2010
Hi All,

I was wondering, I used to write batch files when I used to work on computers with DOS 6.22 etc. I've forgotten how to do it. How could I write a batch file that can be executed by clicking on an icon in windows?

The reason I ask, is that my dad is pretty poor with computers. He's got a Sony Vaio laptop and has just bought a Canon digital SLR camera and he has photos EVERYWHERE! He always claims that they've moved from where he put the etc. haha.

What I would like to do is create a batch file which will back up his whole my docs picture folder or something similar so it's easy for him to make sure stuff is backed up.

Thanks.
 
Reply With Quote
 
 
 
 
sugar 'n spikes
floppybootstomp's Avatar
Join Date: Mar 2002
Location: Greenwich
Posts: 16,349
 
      8th Jun 2010
Good Luck

 
Don Van Vliet 1941 - 2010. And the acid gold bar swirled up and down, up and down.
 
Reply With Quote
 
Ian Ian is offline
Rocket Scientist
Ian's Avatar
Join Date: Feb 2002
Location: Manchester, UK
Posts: 16,071
 
      8th Jun 2010
It's probably easier to download something like Comodo Backup (free!) and then schedule it to backup a folder automatically : http://backup.comodo.com/

However, if you did want to make a batch file, just create a file somewhere called backup.bat (or whatever you want) and then right click it and click edit.

You'll then need to think how you want to backup the files (i.e., perhaps zip them up or just copy them?). The example just copies them to a backup drive and creates a log file:

Code:
@echo off
xcopy "C:\Users\Dad\Pictures\*.*" d:\PicBackup\ /c /s /r /d /y /i > d:\PicBackup\xcopy.log
  • /d—This switch copies all source files that are newer than existing destination files. It allows you to update only files that have changed, making the process a lot faster.
  • /c—This command-line option ignores errors. You don’t want one corrupted file to halt the automated copying.
  • /s—This option copies directories and subdirectories.
  • /r—This switch copies read-only files.
  • /y—Use this switch to overwrite files without prompting. You don't want any user intervention to be required.
  • /i—Use this option to automatically create new folders on destination.
 
Reply With Quote
 
Captain Crunchie, Retired
muckshifter's Avatar
Join Date: Mar 2002
Location: In a Hovel
Posts: 19,978
 
      8th Jun 2010
Use Google's Picasa and forget about it.

http://www.youtube.com/watch?v=rskC6c_5L1M

KISS

 
I'm not grouchy by nature, it takes constant effort.



Flickr

Every day I beat my own previous record for number of consecutive days I've stayed alive.
 
Reply With Quote
 
Senior Member
bodhi's Avatar
Join Date: Mar 2004
Location: York
Posts: 1,571
 
      8th Jun 2010
Thanks guys, I will give it a bash and see what happens. :-)
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I batch convert 97-2003 .xls files to 2007 .xlsx files =?Utf-8?B?RGF2ZSBOdXR0YWxs?= Microsoft Excel Misc 4 3rd Aug 2009 11:38 PM
How can I convert a batch of .wpd files to Word 2007 files? SPW Microsoft Word New Users 3 15th Jul 2008 05:10 AM
calling multiple batch files from within a batch file yawnmoth Windows XP General 3 26th May 2008 06:47 PM
Re: In Vista, can .wps files be converted to .rtf files as a batch i.e. instead of one at a time? DL Windows Vista General Discussion 0 20th Mar 2008 12:57 PM
Photo Editor Batch supporting batch compression JPG files 29150 Freeware 2 23rd Jun 2003 06:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:21 PM.