-
August 14th, 2007, 07:35 PM
#1
File manipulation exercise.
So I wanted to research the scope of creating this program (in Dos if possible)that can keep track of a students files throughout the scope of their enrollment.
So there's a program that runs every semester that creates directories for every student (depending on whether they're enrolled or not). I make a backup of the previous semester's data at the end of each semester, and I want the program that i'm going to create to compare the backed up directory to the newly created directory, and copy the files back to their respective directories.
Also i wanted to add a time to live, i.e. in five years clean up data that was created five years in the past and unchanged recently.When the first script is run, I want the program to create a file (like a touch file in linux) that it can use as a reference for the folders create date, and the last time It was updated (so I could scrap the entire directory if it was idle for a year or so).
At the moment security isn't an issue, not to say it's really lax, but this is an recreational exercise so functionality first, security second. I just want some ideas, both in windows code and unix code. thanks AO
...:::Pure Kn0wledge:::...
-
August 15th, 2007, 12:21 PM
#2
Perl can easily handle that, both on windows and *nix.
Oliver's Law:
Experience is something you don't get until just after you need it.
-
August 15th, 2007, 08:24 PM
#3
Thats what I was gonna say :-p
-
August 18th, 2007, 04:03 AM
#4
I highly recommend python. Just as useful for shell stuff as perl, with less or a learning curve and less chance of driving the next person to maintain the script postal. (You may still work there when they snap.)
[HvC]Terr: L33T Technical Proficiency
-
August 18th, 2007, 05:06 AM
#5
I would create a c# windows console program. Many of the directory traversing and creation classes have already been built.
But to be honest, for createDates (getDate()) and other such information, a database is probably your best bet.
C# (or VB).net console app would do it nicely, and quickly.
For unix I would use c++, or maybe mono.
-xmad
Similar Threads
-
By cheyenne1212 in forum Miscellaneous Security Discussions
Replies: 7
Last Post: February 1st, 2012, 02:51 PM
-
By ali1 in forum The Security Tutorials Forum
Replies: 27
Last Post: January 1st, 2004, 11:59 AM
-
By -DaRK-RaiDeR- in forum Newbie Security Questions
Replies: 9
Last Post: December 14th, 2002, 08:38 PM
-
By rcgreen in forum The Security Tutorials Forum
Replies: 1
Last Post: October 4th, 2002, 05:07 AM
-
By Gbin@ryR in forum AntiOnline's General Chit Chat
Replies: 8
Last Post: February 28th, 2002, 05:52 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|