Use installutil with space in the path

ryanlcs

Member
Joined
Apr 17, 2008
Messages
12
Programming Experience
Beginner
Hi

How can I install a window service with the following:
I got this in a batch file:

Statement 1
c:
cd C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
InstallUtil C:\APP Code\Service.exe
pause

But if failed cos there is a space between APP and Code. However if I change to this, it works:

Stetement 2
c:
cd C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
InstallUtil C:\APP_Code\Service.exe
pause

How to make the first statement work?

Thanks
 
Back
Top