Results 1 to 5 of 5

Thread: File manipulation exercise.

  1. #1
    Member n00bius's Avatar
    Join Date
    Mar 2005
    Location
    texas
    Posts
    86

    Red face 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:::...

  2. #2
    Just Another Geek
    Join Date
    Jul 2002
    Location
    Rotterdam, Netherlands
    Posts
    3,401
    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.

  3. #3
    Senior Member
    Join Date
    Oct 2003
    Location
    MA
    Posts
    1,052
    Thats what I was gonna say :-p

  4. #4
    Old-Fogey:Addicts founder Terr's Avatar
    Join Date
    Aug 2001
    Location
    Seattle, WA
    Posts
    2,007
    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

  5. #5
    Webius Designerous Indiginous
    Join Date
    Mar 2002
    Location
    South Florida
    Posts
    1,123
    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

  1. Windows Error Messages
    By cheyenne1212 in forum Miscellaneous Security Discussions
    Replies: 7
    Last Post: February 1st, 2012, 02:51 PM
  2. 4 steps to making your computer immortal online.
    By ali1 in forum The Security Tutorials Forum
    Replies: 27
    Last Post: January 1st, 2004, 11:59 AM
  3. Newbies, list of many words definitions.
    By -DaRK-RaiDeR- in forum Newbie Security Questions
    Replies: 9
    Last Post: December 14th, 2002, 08:38 PM
  4. executable files
    By rcgreen in forum The Security Tutorials Forum
    Replies: 1
    Last Post: October 4th, 2002, 05:07 AM
  5. Camouflage v1.2.1 The programme
    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
  •