but I am not an expert on batch files and/or command lines, I needed the above, so that's all I did! Get file modified date & time. Howto echo or get file timestamp (date) in command (cmd) .bat ... .bat batch cmd dos echo ... You cant lock or unlock subversion file. DATE command batch file cmd - ExeScript Bat to EXE Converter For example, you could use %date:~10,4%-%date:~4,2%-%date:~7,2%_backup.zip in a daily batch file to generate backup targets with yyyy-mm-dd_backup.zip formatted file Then rename the file test.bat, and run it from the command line to view it. We have 3 servers, maybe more to come...with 4 file types, that's 12 list files to maintain so I wanted to check the ext of the filename and execute the checking commands based of filetype...that's what I added the extra FOR That means that before comparing you'll need to cut off the time part, for which you'll need to take into account the display format as specified in the system's regional settings. Check out ErrTime, by Phil Money, Advantig Engineering & Design, if you want an easy to use and language independent way to check the system time or date in batch files. In a batch file you would likely use it like this: @IF NOT EXIST C:\PATH\TO\YOUR\APP.EXE GOTO END @SET APPVER=3.14159 @\\FILESHARE\filever.exe "C:\PATH\TO\YOUR\APP.EXE" | findstr /i %APPVER% > nul @IF %ERRORLEVEL% EQU 0 GOTO END add echo in front of the file name >> echo My First Report_%date:~-4,4%%date:~-7,2%%date:~-10,2%.pdf. Kind of over kill using those temporary files for the date. What i want to do is have the batch file check what date it is and if it is a certain date echo a message. Its quite possible to add time as well, reformat the date etc. It may be useful in creating temporary files or log files or put time What i want to do is have the batch file check what date it is and if it is a certain date echo a message. You should be able to hold dates in two variables and compare them just like you did in your initial script. Howto echo or get file timestamp (date) in command (cmd) .bat ... .bat batch cmd dos echo ... You cant lock or unlock subversion file. It may be useful in creating temporary files or log files or put time A-Z Windows Commands, Batch files, Dos and PowerShell. Version 1.4 has just (July 4, 2004) been released to the Public Domain. So I need a script or batch that can check the modified date every 10 mins to make sure that the modified that has changed since its last scan. Get file modified date & time. I need help with creating a batch file that will check the date modified of an excel file, if the file is today's date, do nothing, else run This post explains how to get current date and time from command prompt or in a batch file. ... check this post: Dir command syntax and examples. Check out our Windows Admin Tools. For example, you could use %date:~10,4%-%date:~4,2%-%date:~7,2%_backup.zip in a daily batch file to generate backup targets with Diskcopy. It may be useful to get a current timestamp string (not fully with numbers) in batch file scripting. This tutorial describes a simple .bat file used to create a folder based on the date in the MMDDYYYY format. How to get date / time in batch file. I need batch code to check if date is modified in three files and that date should be compared with current date (%date%).If so,do some job,otherwise quit (exit /b) I found a bunch of