Foro de elhacker.net

Programación => .NET (C#, VB.NET, ASP) => Mensaje iniciado por: Eleкtro en 20 Septiembre 2013, 23:05 pm



Título: [SOURCE] FileDate (Modifica u obtiene las fechas de archivos)
Publicado por: Eleкtro en 20 Septiembre 2013, 23:05 pm
(http://img845.imageshack.us/img845/5776/lyn.png)



· Descripcion

FileDate es una aplicación por linea de comandos para obtener o modificar los TimeStamps de un archivo, la fecha de creación, de modificación, o de último acceso.

Si conocen la aplicación "FileTouch" entonces se harán una idea mejor, símplemente quise hacer el mismo tipo de programa, pero mejor en todos los sentidos, y extendiendo su funcionalidad.

PD: Bajo el test que he realizado, FileDate es capaz de modificar simultánemanete los tres tipos de fechas de 1.000 archivos de 10 mb cada uno (+9 GigaBytes en total) en aproxímadamente 1,4 Segundos.



· Modo de empleo

(http://img708.imageshack.us/img708/6943/a72h.png)



Código:
    ___   _    _            ___             _
   | __| (_)  | |   ___    |   \    __ _   | |_     ___
   | _|  | |  | |  / -_)   | |) |  / _` |  |  _|   / -_)
   |_|   |_|  |_|  \___|   |___/   \__,_|  _\__|   \___|
                          |"""""|_|"""""|_|"""""|_|"""""|
   By Elektro H@cker    .'`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'


[+] Syntax:

    FileDate.exe [Action] [Switches] [Date] [File or Directory]

    NOTE: Date Syntax variants can be written as one of these:

    "DD-MM-YYYY"
    "DD/MM/YYYY"
    "DD-MM-YYYY NN"
    "DD/MM/YYYY NN"
    "DD-MM-YYYY NN:NN"
    "DD/MM/YYYY NN:NN"
    "DD-MM-YYYY NN:NN:NN"
    "DD/MM/YYYY NN:NN:NN"


[+] Actions:

    -Get  | Retrieve the date(s) of a file.
    -Set  | Set the date(s) of a file.


[+] Switches:

    /C    | Get or Set Creation Date.
    /M    | Get or Set Modification Date.
    /A    | Get or Set LastAccess Date.
          |
    /R    | Recursive subdirectories (when folder is specified instead file).
    /V    | Display verbose information.
          |
    /?    | Display this help.


[+] Usage examples:

    # Get Creation date of "C:\File.txt":
      -----------------------------------
      FileDate.exe -Get /C "C:\File.txt"

    # Get Creation, Modification and LastAcces date of "C:\File.txt":
      -----------------------------------
      FileDate.exe -Get /C /M /A "C:\File.txt"

    # Set Creation date of "C:\File.txt":
      -----------------------------------
      FileDate.exe -Set /C "01/01/2013 23:59:59" "C:\File.txt"

    # Set Creation and modification date of "C:\File.txt":
      ----------------------------------------------------
      FileDate.exe -Set /C /M "01/01/2013" "C:\File.txt"

    # Set LastAcces Date of all files in "C:\Directory":
      --------------------------------------------------
      FileDate.exe -Set /R /A "01/01/2013" "C:\Directory"

    # Set Creation, Modification and LastAcces Date of all files in "C:\Directory",
      And also displays extended information about the Date changes:
      --------------------------------------------------------------
      FileDate.exe -Set /R /V /C /M /A "01/01/2013" "C:\Directory"



· Descarga

http://elektrostudios.tk/FileDate.zip

Resubido temporálmente, solo el exe compilado.
http://www.mediafire.com/download/662hq99t0h5cn9d/FileDate.exe


Incluye Source, Compilado e Instalador.