:GetDate FOR /F "DELIMS=" %%T IN ('TIME /T') DO SET @TIME=%%T FOR /F "TOKENS=2" %%D IN ('DATE /T') DO SET @DATE=%%D FOR /F "TOKENS=1-4 DELIMS=-/ " %%D IN ('DATE /T') DO ( SET @DAY=%%D SET @DD=%%F SET @MM=%%E SET @YYYY=%%G ) SET @HOUR=%@TIME:~0,2% SET @SUFFIX=%@TIME:~5,1% IF /I "%@SUFFIX%"=="A" IF %@HOUR% EQU 12 SET @HOUR=00 IF /I "%@SUFFIX%"=="P" IF %@HOUR% LSS 12 SET /A @HOUR=%@HOUR% + 12 SET @NOW=%@HOUR%:%@TIME:~3,2% SET @NOW=%@NOW: =0% SET @TODAY=%@YYYY%/%@MM%/%@DD% SET @DateChrisWants=%@YYYY%-%@MM%-%@DD% MOVE %@DateChrisWants%.filename.txt <new location> Hope this helps, Glenn Sullivan, MCSE+I MCDBA David Clark Company Inc. -----Original Message----- From: windows2000-bounce@xxxxxxxxxxxxx [mailto:windows2000-bounce@xxxxxxxxxxxxx]On Behalf Of Puetz, Christoph Posted At: Tuesday, March 30, 2004 2:46 PM Posted To: Windows 2000 Conversation: [windows2000] Scripting question Subject: [windows2000] Scripting question And my second question for the day ;-) I am running a process that creates a file based on the current date. The date of course always changes in the file name, while the other part of the file name never changes. (e.g. 2004-03-30.filename.txt) I'd like to move the file on a daily base to a different directory. Now I am running into problems with how to do that. Is there a way to tell a script to use today's date' as part of the file name when moving the file? I am not really a good scripting person - so, any kind of help would be appreciated. Thanks. Christoph ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ ******************************************************** This Weeks Sponsor StressedPuppy.com Games Feeling stressed out? Check out our games to relieve your stress. http://www.StressedPuppy.com ******************************************************** To Unsubscribe, set digest or vacation mode or view archives use the below link. http://thethin.net/win2000list.cfm