I hope we can learn to see eye-to-eye in future...
The reasons behind your style and their purpose have not gone unnoticed by me but I feel there is a time and place for complexity - just as there is a need for simplicity in some situations.

QUESTION 2:
How can I delimit the !$$! variable by its spaces (if it contains them) in this code:
Code: Select all
ECHO !$$:~ =!
Code: Select all
SET $$=!$$:~ =!
Code: Select all
@echo off
set destination=d:\temp
md %destination% 2>nul
for %%a in (doc pdf xls) do (
xcopy "*.%%a" "%destination%" /c /d:11-1-2011 /s
)
Code: Select all
set min=5
set max=10
set /a range=max-min +1
set /a rnd=%random% %%%range% +%min%
echo %rnd%