I manually back up files in an old invoicing system. I locate 8 or 10 files, copy them, then create a directory of the day's date, and paste the files there on another pc or cd etc. If a new month turns, then I create a directory for the month.
So I have BackupDirectory / Month/ Date/ files
Using Delphi examples I can get a simple form up and create a directory and get a warning up it the directory already exists. Ideally I'd like to create an app that does it all automatically but putting my logic down to work in Delphi pascal never works. A bit like humming a song in your head and then try to sing it. Its never the same !
So, using my garbled logic..
If the month is February and February Directory doesn't exist, create it.
Move to that directory ChDir(currentmonth.
Use MkDir(todaydate) to create a directory with the current date within the currentmonth directory.
Connect via a Lan or mapped drive and select a know list of files and copy them. Or test for files of a given extension if the file date is the current date.
Then paste them to the above created todaydate dorectory.
Is anyone able to put that garbled logic into some sort of delphi pascal routine or atleast give me a few pointers.
Thanks.
My Feeblegirl.com Forum boards for mmorpgs, sport, fun, politics...
So I have BackupDirectory / Month/ Date/ files
Using Delphi examples I can get a simple form up and create a directory and get a warning up it the directory already exists. Ideally I'd like to create an app that does it all automatically but putting my logic down to work in Delphi pascal never works. A bit like humming a song in your head and then try to sing it. Its never the same !
So, using my garbled logic..
If the month is February and February Directory doesn't exist, create it.
Move to that directory ChDir(currentmonth.
Use MkDir(todaydate) to create a directory with the current date within the currentmonth directory.
Connect via a Lan or mapped drive and select a know list of files and copy them. Or test for files of a given extension if the file date is the current date.
Then paste them to the above created todaydate dorectory.
Is anyone able to put that garbled logic into some sort of delphi pascal routine or atleast give me a few pointers.
Thanks.
My Feeblegirl.com Forum boards for mmorpgs, sport, fun, politics...