PC Review


Reply
Thread Tools Rate Thread

Dir: Display full time

 
 
Swifty
Guest
Posts: n/a
 
      27th Jan 2008
Is there any way to make the DIR command list the full time (04:31:30
rather than just 04:31) ?

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk
 
Reply With Quote
 
 
 
 
Mark L. Ferguson
Guest
Posts: n/a
 
      27th Jan 2008
Not with the DIR command, but the info is there to access. The time is
recorded in 100 million'ths of a second. Certainly there are a number of
interfaces available, and which one you use is probably most dependant on
what you are most comfortable with using. I would probably add a suffix to
the filename that showed the accurate time. The command: 'cscript list.vbs >
list.txt' would show you all attributes in 'c:\somefolder'.
--list.vbs--
Set objShell = CreateObject ("Shell.Application")
Set objFolder = objShell.Namespace ("C:\somefolder")
Set objFSO = CreateObject("Scripting.FileSystemObject")
Dim arrHeaders(13)

For i = 0 to 13
arrHeaders(i) = objFolder.GetDetailsOf (objFolder.Items, i)
Next

For Each strFileName in objFolder.Items
For i = 0 to 13
If i <> 9 then
Wscript.echo arrHeaders(i) _
& ": " & objFolder.GetDetailsOf (strFileName, i)
End If
Next
Wscript.Echo
Next

--
Mark L. Ferguson
e-mail subject line must include "QZ" or it's deleted
..
"Swifty" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Is there any way to make the DIR command list the full time (04:31:30
> rather than just 04:31) ?
>
> --
> Steve Swift
> http://www.swiftys.org.uk/swifty.html
> http://www.ringers.org.uk



 
Reply With Quote
 
Swifty
Guest
Posts: n/a
 
      28th Jan 2008
Mark L. Ferguson wrote:
> Not with the DIR command, but the info is there to access.


Thanks. I can get at it with code, and now I know I can stop wasting my
time fiddling with the DIR command.

The only reason I wanted to use the DIR command is that I have a program
which takes backups when the source file has a different size or
timestamp from the backup file, and I wanted a simple test that the
backup files matched the source files after it ran.

Then I found the bug in the backup program that was causing it to copy
the same (old) files over and over again. :-)

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adjusting the Clock in Windows XP to display full Time and Date Everchanging02 Windows XP Customization 7 23rd Jul 2008 02:24 AM
Work Part time or Full time from Home. No Age Bar. Basic sachincric08@gmail.com DIY PC 2 3rd Mar 2008 07:04 AM
Full display name does not display in the contact field. =?Utf-8?B?TGFyeQ==?= Microsoft Outlook Contacts 2 11th Oct 2005 03:20 PM
How to use solver to schedule part time and full time workforce? =?Utf-8?B?VGhlIE9veg==?= Microsoft Excel Misc 0 18th Aug 2005 06:53 AM
How do I set up payroll for 1 full time and 1 part time employee? =?Utf-8?B?UXVpY2tCb29rcyBuZXcgdXNlcg==?= Microsoft Excel New Users 1 28th Dec 2004 10:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:13 PM.