Inicio > windows > How do I programatically change the create, modify, access date on a file ?

How do I programatically change the create, modify, access date on a file ?

Fuente: http://stackoverflow.com/questions/582553/how-do-i-programatically-change-the-create-modify-access-date-on-a-file/582638#582638

I need to change the modify date on a file in windows so that it doesn’t clutter up my sort order. How can I do that with a script (I may need to do that to the file in the future as well)?

thanks.

BTW: I don’t want to have to install apps to do this.

ANSWER:

If you have powershell

$(Get-Item ).creationtime=$(Get-Date "mm/dd/yyyy hh:mm am/pm")
$(Get-Item ).lastaccesstime=$(Get-Date "mm/dd/yyyy hh:mm am/pm")
$(Get-Item ).lastwritetime=$(Get-Date "mm/dd/yyyy hh:mm am/pm")
share|improve this answer

Categorías: windows Etiquetas: , ,
  1. No hay comentarios aún.
  1. No trackbacks yet.

Deja un comentario