SC.exe-Command prompt syntax issue?

Hi All,
          I'm trying to create a new service using Sc.exe but I'm having some trouble with the command. This is what I have thus far, and it gives me an incorrect parameter error. Any obvious errors? This is what my command prompt looks like (below). My goal with this command is to create a new service. The instructions and the KB on Microsoft is somewhat unclear as to how you actually point to the correct .exe file you want to make run as the service, is this correct?
C:\>sc \\xxxxxx create C:\Program Files\silex technology\SX Virtual Link\Conn
ect.exe binpath= C:\Windows\System32\Newserv.exe start=boot DisplayName= SilexUS
BService
RandyIT ManagerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

oBdACommented:
In a command line, folder paths including spaces always have to be enclosed in spaces; it's a good habit to always enclose paths in quotes, just to get used to it.
In addition, you always need a space after the equal sign in the sc command line.
So this should work:
C:\>sc \\xxxxxx create "C:\Program Files\silex technology\SX Virtual Link\Connect.exe" binpath= "C:\Windows\System32\Newserv.exe" start= boot DisplayName= SilexUSBService
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Brad HoweDevOps ManagerCommented:
oBdA is correct.

Anything that uses a folder path should be enclosed in " " . This just catches spaces if any....

http://support.microsoft.com/kb/251192

Cheers,
Hades666
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2003

From novice to tech pro — start learning today.