Two points...
1. Remove quotes from strings by using ~ modifier. If using passed parameter string, if %1 has quotes, %~1 is the same string without quotes. For example:
set DorQ=%~1
2. It is not necessary, in batch programming, when defining a string variable, to use quotes. (unless you actually want them to be part of the string). This is a difference from e.g. BASIC. So this is allowed:
SET AString=\logfile.log