Space in batch file

Closed
Eric Wuwungan - Feb 6, 2012 at 03:22 AM
Mouni369 Posts 4 Registration date Monday March 12, 2012 Status Member Last seen July 20, 2012 - Mar 26, 2012 at 12:37 AM
Hello,



Vicky,

I am trying to create the following command in a batch file:
C:\Program files (x86)\Microsoft Office\Office10\powerpnt.exe %1
I do not have administrator rights.
This batch file does not work, although by using the traditional command prompt by
moving to the directory it worked.
I used the double quote - space - double quote method, but perhaps I placed them wrongly. Could you please give me some advice ?

Thank you in advance !!!
Related:

1 response

Mouni369 Posts 4 Registration date Monday March 12, 2012 Status Member Last seen July 20, 2012
Mar 26, 2012 at 12:37 AM
Hi Vicky,

I am not sure what your requirement is exactly.
But if the path has a space, it works if we give it in double quotes.

C:\"Program files"\"Microsoft Office"\Office10\powerpnt.exe %1


Thanks,
Mounika
0