Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Backup batch file  (Read 2699 times)

0 Members and 1 Guest are viewing this topic.

Kaya

  • Guest
Backup batch file
« on: January 26, 2006, 08:34:02 AM »
Hello everyone,

please forgive me if my question is silly but I do not know anything about batch files. I do, however need to have one that would do the following:
1. check to see if anything is written on a zip disk
2. delete all files from that disk if they are present
3. copy files from network drive onto this zip disk
I'm sure this is done easily - but I am no computer wiz and I would really appreciate any help.

Thank you in advance.

Kaya :-?

Blackberry



    Adviser
  • For those with wings, fly to your dreams.
    Re: Backup batch file
    « Reply #1 on: January 26, 2006, 08:39:21 AM »
    Quote
    Hello everyone,

    please forgive me if my question is silly but I do not know anything about batch files. I do, however need to have one that would do the following:
    1. check to see if anything is written on a zip disk
    2. delete all files from that disk if they are present
    3. copy files from network drive onto this zip disk
    I'm sure this is done easily - but I am no computer wiz and I would really appreciate any help.

    Thank you in advance.

    Kaya :-?
    try something with these lines these works if you work under windows xp, because you didn't telled your os!

    @echo off
    if exist A:/*.* goto exist
    echo no zip disk inserted
    copy
    :exist
    del A:/*.*
    goto copy
    :copy
    copy "your network drive" "a:/"
    pause
    « Last Edit: January 26, 2006, 08:40:39 AM by blackberry »
    Everybody knows you can't click here. But I know you will try it :)

    Kaya

    • Guest
    Re: Backup batch file
    « Reply #2 on: January 26, 2006, 08:53:03 AM »
    THe OS is Windows XP. Thank you so much for your help!

    Kaya :)

    Blackberry



      Adviser
    • For those with wings, fly to your dreams.
      Re: Backup batch file
      « Reply #3 on: January 26, 2006, 11:54:58 AM »
      Quote
      THe OS is Windows XP. Thank you so much for your help!

      Kaya :)

      no problem, anytime. if you want to learn more, you can surf on the computerhope main page, and then click on the section dos, i learned there everything i know now
      Everybody knows you can't click here. But I know you will try it :)

      Kaya

      • Guest
      Re: Backup batch file
      « Reply #4 on: January 26, 2006, 03:21:58 PM »
      Thank you again. I do have another question though. How can I make this script backup folder and not just its content?
      I was looking at DOS section...but with no results... sorry.. :-?