On 4/11/12 12:25 PM, Malcolm Greene wrote:
> I'm working in a locked down XP environment that will not allow
> me to install 3rd party apps or utilities.
>
> I'm looking for a built-in XP utility or cmd shell command that
> will provide me with the most detailed directory listing
> possible. The DIR command is limited and I'm looking for a way to
> get info such as create and last written dates (vs. just access
> dates), owner, NTFS permissions, attributes (readonly, system,
> hidden, etc) and any other meta data that's available.
>
> Any suggestions?

If Python happens to be available, the create, modified, and access times are 
easily 
gotten with os.stat():

C:\ss>python
Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
 >>> import os
 >>> os.stat("/ss/sbs_studio.py")
nt.stat_result(st_mode=33206, st_ino=0L, st_dev=0, st_nlink=0, st_uid=0, st_gid=
0, st_size=5426L, st_atime=1332442990L, st_mtime=1332442990L, st_ctime=133244299
0L)

Paul



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to