Skip to content

Instantly share code, notes, and snippets.

@jessenic
jessenic / foo.bat
Created November 30, 2012 18:26 — forked from timheuer/foo.bat
batch with spaces
SET arch=%processor_architecture%
SET "pf=C:\Program Files"
if "%arch%" == "AMD64" (
SET "pf=C:\Program Files (x86)"
)
REM below does not fail even though "pf" has spaces in it
copy "\\some\path\file.foo" "%pf%\bar\baz\file.foo"