Just idly commenting here that your examples also add spaces.
You know, I was on the bus coming back from work, and I thought "I put spaces before the redirections".
Correction:
This:
(with a space between echo and the dot!)
echo .> path\filenameechoes a dot and a newline (cr + lf) to the file, creating the file if it does not exist, overwriting the file completely if it already exists.
Note however:
This:
(no space between the echo and the dot!)
echo.> path\filenameechoes a blank new line to the file.
Redirection operators:
> create new file if it does not exist, over-write file if it exists.
>> create new file if it does not exist, append to file (add to end of file if it exists.
[/quote]