I need to invoke an exe file in C:\\Program Files directory from a batch file.How can we mention the directory name \"Program Files\" in batch file.I am getting error like C:\\P
Surround the script call with "", generally it's good practices to do so with filepath.
""
"C:\Program Files"
Although for this particular name you probably should use environment variable like this :
"%ProgramFiles%\batch.cmd"
or for 32 bits program on 64 bit windows :
"%ProgramFiles(x86)%\batch.cmd"