Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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

Try this:
@echo off cls for /f %%1 in ('dir /b path\filename.ext') do ( set filedate=%%~t1 ) echo %filedate%

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

<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.

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

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |