Results 1 to 5 of 5

Thread: backup batch file

  1. #1
    Junior Member
    Join Date
    Apr 2007

    backup batch file

    Im sorry that i dont understand most of them cause im new in batch files but i also want to backup & zip some files, lets say:

    "C:\program Files\winzip\wzzip" -a -p -r C:\BACKUP\ "C:\Program Files\ahead\*.*"
    copy C:\BACKUP\ K:\BACKUP\

    i run this batch every day and i want to verify that the backup is done, otherwise prompt me with an error message
    I think that the best way is to compare the date that the backup was run with the date that the file is modyfied. that was a thought but i dont know if is the best way

    thnx in adnvance

  2. #2
    Junior Member
    Join Date
    Apr 2007
    no one?

  3. #3
    Ft. Couch! morbidpete's Avatar
    Join Date
    Mar 2002
    W. Warwick RI
    Paging "Norn"

    ge's the batch file/DOS god

  4. #4
    Junior Member
    Join Date
    Apr 2007
    Norn? Philip? ........ or someone who knows about plz?

  5. #5
    Elite Member Norm's Avatar
    Join Date
    Mar 2001
    The best way is a matter of opinion.

    Why not just name the file using the date.

    etc etc

    Try this

    set folder=%date:~10,4%_%date:~4,2%_%date:~7,2%
    "C:\program Files\winzip\wzzip" -a -p -r "C:\BACKUP\\" "C:\Program Files\ahead\*.*"
    copy C:\BACKUP\ K:\BACKUP\\

    I'm assuming your above posted script works. I don't have winzip and can't test your command syntax.

    If you don't want a bunch of backup files piling up over time, just add a line to remove zip files at the begining of the script

    del C:\BACKUP\*.zip
    del K:\BACKUP\*.zip
    Last edited by Norm; 05-09-07 at 02:33 AM.

Similar Threads

  1. Please new to dsl and already having problem
    By weedancer in forum General Broadband Forum
    Replies: 46
    Last Post: 03-09-07, 06:23 PM
  2. Problems with NERO
    By Qui-Gon John in forum Software Forum
    Replies: 6
    Last Post: 11-05-06, 05:58 PM
  3. CD Burner Problems
    By SupaSizeMe07 in forum Hardware & Overclocking
    Replies: 0
    Last Post: 07-18-06, 09:03 PM
  4. Need sugestion - backup with batch file in network
    By challenger in forum Software Forum
    Replies: 9
    Last Post: 05-16-06, 04:10 PM
  5. How can I highlight the text in this webpage?
    By RoundEye in forum General Discussion Board
    Replies: 6
    Last Post: 01-20-05, 10:57 PM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts