When to quote paths - when not to?
Posted: Tue May 12, 2009 6:37 pm
This is sort of general question. I have observed that Find all files is quite happy looking for a file on a path with enclosed spaces - unquoted.
For example,
Find All Files in path $TARGETDIR$\\ConnectMonitor\\bin\\user.config, write result into variable resultsSearchUserConfig
TARGETDIR is the typical \\Program Files\\... path
But Run program is fussy about the path being quoted.
Run Program wusa.exe "$NET3SP2_BOOTPATH$\\new3sp2bin\\Vista\\NetFX3.0..." /quiet /norestart (WAIT)
But File bag extract paths seem to work fine with Run Program without being quoted.
Run Program $SQLEXPR_FILEBAG$\\sqlexpr.exe /qb ...
For example,
Find All Files in path $TARGETDIR$\\ConnectMonitor\\bin\\user.config, write result into variable resultsSearchUserConfig
TARGETDIR is the typical \\Program Files\\... path
But Run program is fussy about the path being quoted.
Run Program wusa.exe "$NET3SP2_BOOTPATH$\\new3sp2bin\\Vista\\NetFX3.0..." /quiet /norestart (WAIT)
But File bag extract paths seem to work fine with Run Program without being quoted.
Run Program $SQLEXPR_FILEBAG$\\sqlexpr.exe /qb ...