copy a file when the date of the source is newer than the destination
using xcopy and a loop i found this is a good way to make sure that changes in one file make their way across to another location using a windows batch file. this one loops every 5 seconds, i think you could run it without the 5 second timeout but it might cause excess cpu and drive usage.
BAT File
:loop
REM xcopy /D /Y
REM this will copy the file only if its changed from source to destination and check every 5 seconds for a change
xcopy file.txt file_backup.txt /D /Y
timeout /t 5
goto loop
This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...
โIf you just sit and observe, you will see how restless your mind is. If you try to calm it, it only makes it worse, but over time it does calm, and when it does, thereโs room to hear more subtle things. You see so much more than you could see before. Itโs a discipline; you have to practice it.โ Steve Jobs
Random CSS Property
@counter-style
The @counter-style CSS at-rule lets you define counter styles that are not part of the predefined set of styles. A @counter-style rule defines how to convert a counter value into a string representation. @counter-style css reference