Results 1 to 3 of 3
Thread: I.T help required
-
24th April 2006, 11:14 AM #1
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 availI 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
-
24th April 2006, 11:21 AM #2
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
-
24th April 2006, 02:18 PM #3
You could try this
Originally Posted by 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%
Krunchy
Similar Threads
-
People Power Required
By rod1949 in forum NOTHING AT ALL TO DO WITH RENOVATIONReplies: 60Last Post: 17th April 2005, 01:14 PM -
Timber size required vs span
By CraigV in forum FLOORING, DECKING, STUMPS, etc.Replies: 11Last Post: 15th February 2005, 10:26 AM
Bookmarks