Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi...
I need to use FIND on a file to pull out all lines that contains today's date, but I cannot figure out in Win '98 how to capture the date in an environment variable and trim it to a format that I can use with FIND. I had this script running in Win2K, but the string manipulation stuff is very different and won't work in '98. Any pointers would be very helpful...
Arthur

This will work in some 9x, depending on language, region, date layout and a few other things:
::== D9.bat
@echo offecho.|date>datevar.bat
echo.|time>timevar.batecho set DATEvar=%%4>current.bat
call datevarecho set DAYvar=%%3>current.bat
call datevarecho set TIMEvar=%%3>current.bat
call timevar
:: DONE
=====================================
If at first you don't succeed, you're about average.M2

![]() |
cant browse
|
Move Win98 from PC to not...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |