Batch File RRS feed

  • Question


    I need to create a batch file so that it copys my favorite folder in c drive to e drive.So actuall want i need to do is, i format my pc in like every 15 days so "after" my format is completed then i remember oh.. i forgot to save my fav folder so i need to create a batch file and place it in start up so the it gets copied every time i start my PC.Can any one of u help me to create the batch file?

    Sunday, September 16, 2007 10:40 AM

All replies

  • @echo off
    REM copy documents
    xcopy "C:\My Documents\*.*" d:\mirror\ /c /s /r /d /y /i > d:\mirror\xcopy.log

    And now to run it automaticall on start up you can use
    Scheduled Tasks or you can place this batch file in startup folder.

    Sunday, September 16, 2007 12:38 PM