Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2002
    Location
    Yinnar, Victoria, Australia
    Age
    66
    Posts
    247

    Default I.T help required

    HEEEELLLPPP.

    I have been asked to create a small application which will:

    a) create a directory which is the current date,
    b) move files from another directory INTO the new directory
    c) have the task repeated every night at 11:59

    My questions are, which program is more suitable for this task?, would a batch file do it for me?

    Can some one shed some light on this for me, it has been way too long since I last looked at doing any programming... have been looking up reference books (C++) but too no avail
    I try and do new things twice.. the first time to see if I can do it.. the second time to see if I like it
    Kev

  2. #2
    Join Date
    Dec 2004
    Location
    Hell with fluro lighting
    Age
    55
    Posts
    624

    Default

    Batch file, with a Kron job to set it off (Sheduled Task, Eg Msoft scheduler). We do it here all the time, just cant remember the code....
    I may not have gone where I intended to go, but I think I have ended up where I needed to be.

    My Other Toys

  3. #3
    Join Date
    May 2005
    Location
    Brisbane - Northside
    Age
    49
    Posts
    0

    Question You could try this

    Quote Originally Posted by Brudda
    HEEEELLLPPP.

    I have been asked to create a small application which will:

    a) create a directory which is the current date,
    b) move files from another directory INTO the new directory
    c) have the task repeated every night at 11:59

    My questions are, which program is more suitable for this task?, would a batch file do it for me?

    Can some one shed some light on this for me, it has been way too long since I last looked at doing any programming... have been looking up reference books (C++) but too no avail
    Hi Brudda,

    This below should work (I quickly tested it under Windows XP) - all you need to do is save the code below as a batch file and use the windows scheduler to call it at 11:59.

    Code:
    @ECHO OFF 
      FOR /f "tokens=2-4 delims=:/- " %%F IN ("%DATE%") DO SET D1=%%F&SET D2=%%G&SET D3=%%H 
      :: The Date tokens in D1, D2, and D3 will be in your local date order 
      MD %D1%%D2%%D3% 
    move c:\path\to\files %D1%%D2%%D3%
    Hope it helps.

    Krunchy

Similar Threads

  1. People Power Required
    By rod1949 in forum NOTHING AT ALL TO DO WITH RENOVATION
    Replies: 60
    Last Post: 17th April 2005, 01:14 PM
  2. Timber size required vs span
    By CraigV in forum FLOORING, DECKING, STUMPS, etc.
    Replies: 11
    Last Post: 15th February 2005, 10:26 AM

Tags for this Thread

Bookmarks

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
  •