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

Author Topic: Help me with this Batch File Code?  (Read 2086 times)

0 Members and 1 Guest are viewing this topic.

ItalianOnEdge

    Topic Starter


    Rookie

    Help me with this Batch File Code?
    « on: October 28, 2009, 06:25:36 AM »
    mkdir c:\archive
    xcopy c:\test c:\archive /d:10-26-09
    compact /c c:\archive

    This works but I need to know how to get it to look for files older then two days. Cause the teacher wants it to be able to just grab anything older then 2 days without having to change the date everytime. Also this just compresses the folder. I need to know how it zips the files that are placed into the folder. Can someone please help me?

    ItalianOnEdge

      Topic Starter


      Rookie

      Re: Help me with this Batch File Code?
      « Reply #1 on: October 28, 2009, 06:37:42 AM »
      Oh and by the way. The folder that the files are in is c:\test and the batch file has to make the folder c:\Archive and take the files older then 2 days from the folder c:\Test and zip them and move them to newly made folder c:\Archive. So please help me get this. Cause I been having serious issues.