PDA

View Full Version : Windows NT Q



andyf
22-11-2002, 16:33
How can I read the last ACCESSED time of a file from either Windows NT Command Prompt or KiXtart ?

The function in Kix gives a last modified time which isn't what is needed, purely last accessed.

Chris_Lacey
22-11-2002, 16:44
NT DOS isn't that smart is it? I thought that the problem is that DOS actually accesses the file to find the information on it, and therefore it's like quantum mechanics...

I could be wrong though, since I have never tried.

Grats on the new job btw :)

andyf
22-11-2002, 17:21
Yeah so far that's the problem we've come up against... I think someone's given my poor colleague a bit of a piss poor assignment :rolleyes:

AshT_200
22-11-2002, 17:43
I know that Windows 2000 Command Prompt is DIR /T:A

Dir /T: Time Field

timefield C Creation
A Last Access
W Last Written

Not sure if this is in NT4

GenerationNexus
22-11-2002, 20:01
How about installing cygwin (shareware) or similar, and using a bash command (e.g; ls -lrt). Or binning NT and going the Linux route (this may not help but I'm in one of those moods)

andyf
23-11-2002, 01:25
Originally posted by GeNexus
How about installing cygwin (shareware) or similar, and using a bash command (e.g; ls -lrt). Or binning NT and going the Linux route (this may not help but I'm in one of those moods)


Not easy to bin Windows NT on 100,000 machines. Our customers may have something to say if they come in to find a unix sitting on their boxes.

Pauly_Boy
23-11-2002, 02:04
I could imagen that they woludn't be best pleased!