Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

dos batch file

Options
  • 01-04-2004 2:07pm
    #1
    Registered Users Posts: 379 ✭✭


    not sure if thsi is even possible have looked around on the web and can't seem to find out how to do it. any feed back well appreciated. all i wanna do is check the date a file was created and if it's older than x do something this might make it simpler

    batch file

    net time \\192.168.0.2 /set /y
    net use x: \\192.168.0.2\tbackup
    net use y: \\192.168.0.2\mbackup


    check date of backup file in mbackup if older than 1 month force backup and place in mbackup

    ntbackup backup "C:\documents and settings\%username%" /f "C:\backup\%username%.bkf"



    check date of backup in tbackup if older than 5 days ask do they wanna do a backup and place in tbackup


    if yes

    ntbackup backup "C:\documents and settings\%username%" /f "C:\backup\%username%.bkf"

    else
    exit


    tbackup is temp'e backup
    mbackup is monthly backup


    cheers in advance


Comments

Advertisement