[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference noted::hackers_v1

Title:-={ H A C K E R S }=-
Notice:Write locked - see NOTED::HACKERS
Moderator:DIEHRD::MORRIS
Created:Thu Feb 20 1986
Last Modified:Mon Aug 03 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:680
Total number of notes:5456

436.0. "How can I change the creation date of a number of files?" by KEEPER::KOSTAS (Wisdom is the child of experience.) Tue Mar 31 1987 10:33

    Does anyone know how to change the creation date on a number of
    files? The Copy and Rename commands are of no help here. I want
    to able to change the date for all the files of type *.txt
    so that when I do directory/date I will get todays date or the date
    I issued the change command. 
    
    Any ideas?
    
    -Kostas
    
T.RTitleUserPersonal
Name
DateLines
436.1Simple fix?PIKES::HEINZERDieter Heinzer, PC Hacker, Colorado SpringsTue Mar 31 1987 11:009
    How about simply defining a symbol:
    
    $ DIRSIN :== DIRECTORY/SIZE/PROT/DATE=MODIFIED *.TXT
    
    If you change the protection of *.TXT to anything, then a MODIFICATION
    is tagged, thus the DIRSIN will show today's date?!?!?
    
    					--> Dieter <--
    					He Who Hacketh
436.2re. .-1 /date=modified is not what I want, dir/dte isTHEBUS::KOSTASWisdom is the child of experience.Tue Mar 31 1987 11:4612
    re. .1
    
    Yes I agree that the modified and the backup dates change but that
    is not what I am interested in. The creation date I want to change.
    So that when I do $dir/date  I will see the creation date.
    One solution is to edit all the files and exit so that a new version
    will be created but that is a painfull process and will not work
    for nonhuman readable files.
    
    -Kostas
    
    
436.3TLE::SUNDARAMUsha SundaramTue Mar 31 1987 12:084
    Read note 451.0 SW_TOOLS_CATALOG
    
    Press KP7 / Select to add entry METOO::TOOLS$LIBRARY:SW_TOOLS_CATALOG.
    
436.4VIDEO::LEICHTERJJerry LeichterSun Apr 19 1987 17:007
You wanted a hack, here's a hack:

	$ COPY *.TXT SYS$DISK:*.TXT

You MUST include the "*.TXT" on the output side for this to work!

							-- Jerry