Thanks Thanks:  0
Likes Likes:  0
Needs Pictures Needs Pictures:  0
Picture(s) thanks Picture(s) thanks:  0
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2002
    Location
    Yinnar, Victoria, Australia
    Age
    66
    Posts
    1,277

    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. # ADS
    Google Adsense Advertisement
    Join Date
    Always
    Location
    Advertising world
    Age
    2010
    Posts
    Many





     
  3. #2
    Join Date
    Dec 2004
    Location
    Hell with fluro lighting
    Age
    55
    Posts
    2,156

    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

  4. #3
    Join Date
    May 2005
    Location
    Brisbane - Northside
    Age
    48
    Posts
    61

    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. Help & Advice required
    By Howlong in forum WOODWORK - GENERAL
    Replies: 15
    Last Post: 20th January 2006, 01:59 PM
  2. General help required - Long post Lots of questions
    By notrot in forum WOODWORK - GENERAL
    Replies: 22
    Last Post: 9th August 2005, 10:27 PM
  3. People Power Required
    By rod1949 in forum NOTHING AT ALL TO DO WITH WOODWORK
    Replies: 60
    Last Post: 17th April 2005, 01:14 PM
  4. angles required
    By jow104 in forum WOODWORK - GENERAL
    Replies: 13
    Last Post: 7th July 2004, 10:55 PM

Tags for this Thread

Posting Permissions

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