Batch script cannot find C:\Program files or C:\Program files(x86) path
Hi All,
how can i move to C:\Program Files(X86) in batch script?
I'm trying to call this below path in script to uninstall ms office
C:\program files (x86\common files\
Batch script cannot move to program files dir
0 Comments
[ + ] Show comments
Answers (1)
Answer Summary:
Please log in to answer
Posted by:
rad33k
7 years ago
Top Answer
Have you used quotation marks i.e. "C:\program files (x86)\common files\...\setup.exe" or "%ProgramFiles(x86)%\common files\...\setup.exe"
Every path reference with space character in batch script must be enclosed with quotes.
Every path reference with space character in batch script must be enclosed with quotes.
Comments:
-
Grt!!!!! thanks a lot - rahimpal 7 years ago