And, if you change the first line to:
*SET Var1=%~1#*
Then, you get rid of " in the variable up front.
* *
*ASB* *http://about.me/Andrew.S.Baker* *Harnessing the Advantages of
Technology for the SMB market…
*
On Thu, Jul 28, 2011 at 8:34 AM, Ken Cornetet wrote:
> From set /?
>
> ** **
>From set /?
set Var1=%1#
Sets "Var1" to first parameter passed to the batch file (%1) and appends a "#"
set Var1=%Var1:"=%
Removes all occurrences of the double-quote character in Var1
set Var1=%Var1:\#=%
Removes all occurrences of "\#" in Var1
set Var1=%Var1:#=%
Removes all occurrences of th