/build/static/layout/Breadcrumb_cap_w.png

Systems Management Question


Batch script cannot find C:\Program files or C:\Program files(x86) path

02/07/2017 3813 views
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 


Answer Summary:
0 Comments   [ + ] Show comments

Comments


Answer Chosen by the Author

4
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.
Answered 02/07/2017 by: rad33k
Fourth Degree Brown Belt

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ