Take screenshots forever

@ECHO OFF

REM ******************************************************************************
REM Description: This script will take screenshots every 10 seconds forever.
REM              Screenshots are saved into sc_[Date]_[Time].png.
REM              It requires NirCmd.exe(http://www.nirsoft.net/utils/nircmd.html)
REM Author: Xuan Ngo
REM ******************************************************************************
 
 
:Loop
 
SET Unique=%date%_%time%
SET Unique=%Unique:/=.%
SET Unique=%Unique::=.%
SET Unique=%Unique: =%
SET Unique=%Unique:Mon=%
SET Unique=%Unique:Tue=%
SET Unique=%Unique:Wed=%
SET Unique=%Unique:Thu=%
SET Unique=%Unique:Fri=%
SET Unique=%Unique:Sat=%
SET Unique=%Unique:Sun=%
 
echo %Unique%
 
REM Save screenshots every 10 seconds.
nircmd.exe cmdwait 10000 savescreenshot sc_%Unique%.png
 
SET Unique=&::
 
GOTO Loop