Computing.Net > Forums > Disk Operating System > TIme and date from a file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

TIme and date from a file

Reply to Message Icon

Name: TITA
Date: June 9, 2009 at 20:28:09 Pacific
OS: Windows XP
Subcategory: General
Comment:

HELLO:
I HAVE A PROBLEM I NEED TO KNOW HOW CAN GET THE TIME AND DATE FROM A OLD FILE ,I WENT TO THE PROPERTIES OF THAT FILE AND IS THERE ALL WHAT I NEED ,THE PROBLEM IS THAT IS NOT ALLOW ME TO COPY AT ALL .

PLEASE HELP



Sponsored Link
Ads by Google

Response Number 1
Name: Wahine
Date: June 10, 2009 at 00:58:50 Pacific
Reply:

Try this:

@echo off
cls

for /f %%1 in ('dir /b path\filename.ext') do (
    set filedate=%%~t1
)

echo %filedate%


0

Response Number 2
Name: Mechanix2Go
Date: June 10, 2009 at 07:08:16 Pacific
Reply:

There is no for /f in DOS.

But there sure is a CAPSLOCK.


=====================================
If at first you don't succeed, you're about average.

M2


0

Response Number 3
Name: Wahine
Date: June 11, 2009 at 01:40:30 Pacific
Reply:

<big smile>
Well let's pretend we've initialized the Windows MS-Dos environment in XP in accordance with the first few lines of Config.nt
</big smile>

Perhaps the OP will do us the courtesy of coming back to report success or failure without using CapsLock.

Regards

W.


0

Response Number 4
Name: ghostdog
Date: June 11, 2009 at 21:50:48 Pacific
Reply:

couldn't we just assume that OP is using XP? I see the first post that OS version is XP.


0

Response Number 5
Name: Mechanix2Go
Date: June 11, 2009 at 22:07:05 Pacific
Reply:

Regardless of whether it's DOS or NT, DIR pretty much gets what he needs.


=====================================
If at first you don't succeed, you're about average.

M2


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon





Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: TIme and date from a file

current date as a file or directory name www.computing.net/answers/dos/current-date-as-a-file-or-directory-name/1664.html

listing files and dates www.computing.net/answers/dos/listing-files-and-dates/14146.html

changing system time/date www.computing.net/answers/dos/changing-system-timedate/14977.html