/build/static/layout/Breadcrumb_cap_w.png

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:
Posted by: rad33k 7 years ago
Fourth Degree Brown Belt
4

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.

Comments:
  • Grt!!!!! thanks a lot - rahimpal 7 years ago

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