View Single Post
Old 08-10-2005, 11:42 AM  
eger
Member
 
Join Date: Mar 2003
Posts: 40
Default

Thanks FTPServerTools

I got yours to work the way I wanted. The only thing it misses is a !putlog for announcing. Then it would be the only NewDay script with timeoffset!

If anyone is interested I made this simple batch file to make !putlog for a single dir:

Code:
@ECHO OFF
CD c:\ioFTPD\scripts\NewDay\
date.exe -d tomorrow +%%m%%d > date.tmp
date.exe -d now +%%m%%d > yest.tmp

FOR /F %%a IN (date.tmp) DO (SET date=%%a)
FOR /F %%a IN (yest.tmp) DO (SET yest=%%a)

ECHO Todays Date: %date%
ECHO Yesterday: %yest%
NewDay.exe
ECHO !putlog NEWDATE: "/MP3/%date%" "A new Day has come!"
It requires date.exe from: http://unxutils.sourceforge.net/

Was the fastest way for me to get tomorrows date as a string for use in !putlog echo.
eger is offline   Reply With Quote