@echo off
echo %date% %time:~0,5% >> c:\Logfile.txt
@echo on
start task 1
start task 2
start task 3
Problem my wife is running this batch file every time she turns on the
computer
How would I like to do is check the last entry date to make sure it has
not been run that day and skip to end, I asked her to run it every other
day or once per week
thanks
@echo off
for /f "tokens=*" %%A in (logfile.txt) do set last_date=%%A
if "%date%"=="%last_date%" goto :EOF
Your original code follows that
--
T.E.D. (tda...@mst.edu)
Or maybe ...
@echo off>> c:\Logfile.txt
find "%date%" < c:\logfile.txt > nul || (
echo %date% %time:~0,5% >> c:\Logfile.txt)
__________________
Tom Lavedas