Batch File Hell...
Results 1 to 5 of 5

Thread: Batch File Hell...

  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    2

    A little help with Windows Batch files

    Not sure if this is the correct place, but here goes..

    I need some help creating a batch file that will check different folder locations and find folders that are 14 or more days old, copy them to a temp location and then delete from the temp location

    The file locations do differ, they will be like this...
    F:\Capacity\CCM\Work Area\OBR\Daily-all


    The batch file would need to check all folders that are 5 layers deep, whats the command needed for the batch file to start looking at this level?

    Thanks...
    Last edited by Master Frodo UK; August 22nd, 2006 at 07:10 AM. Reason: Change in needs

  2. #2
    Driver Terrier NooNoo's Avatar
    Join Date
    Dec 2000
    Location
    UK
    Posts
    31,824
    Are you thinking in terms of a DOS batch file or can you stretch to some VB?
    Are the folder locations known?
    What is the point of copying them before deletion?

  3. #3
    Registered User Gabriel's Avatar
    Join Date
    Aug 2000
    Location
    Tel Aviv Israel
    Posts
    2,161
    MMMmmm
    Maybe forfiles is what you need
    http://www.ss64.com/nt/forfiles.html
    Just as Noonoo Mentioned - please elaborate on what you are trying to accomplish.

    Cheers,
    Gabriel

  4. #4
    Registered User gemstone's Avatar
    Join Date
    Oct 2002
    Location
    Cheshire
    Posts
    155
    I wonder, NooNoo if there's a mistake in that he wants them deleting from where they are found after copying to a temp folder, it would make more sense.

  5. #5
    Registered User El_Squid's Avatar
    Join Date
    Aug 2004
    Location
    Tornado Alley
    Posts
    2,079
    Oh, I remember the old ways, now! You mean he wants to perform a MOVE command rather than a COPY to a new location, then DELETE from the original location (which is the same thing). The ways of the Dark Place are coming back....

Similar Threads

  1. Need Help with Office 2003 Reinstall
    By aronius in forum Microsoft Office
    Replies: 38
    Last Post: September 7th, 2008, 09:03 PM
  2. Windows wont show Blank dvd size But nero will
    By djruss in forum CD-ROM/CDR(-W)/DVD Drivers
    Replies: 8
    Last Post: June 6th, 2005, 05:29 PM
  3. Need help writing batch file.....
    By Lt. Columbo (formally Joevegany@..) in forum Windows NT/2000
    Replies: 3
    Last Post: December 20th, 2001, 08:37 PM
  4. [RESOLVED] Batch file question
    By gl993 in forum Tech-To-Tech
    Replies: 11
    Last Post: July 19th, 2001, 04:45 AM
  5. Making a batch file to delete MP3 files
    By SusieQ in forum Windows 95/98/98SE/ME
    Replies: 22
    Last Post: June 11th, 2001, 12:24 PM

Bookmarks

Posting Permissions

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