Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2008

Tip: Looking for answers? Try searching our database.

ProcessBuilder.start and spaces invoking "net.exe" in Windows

Thread view: 
Hoss Spence - 02 Apr 2008 15:13 GMT
Hi,

  Having problem invoking this command.

The code looks like the following

     ProcessBuilder pb = new ProcessBuilder(pExecutableArgs);
pb.start();

where pExecutableArgs is a List which contains
[c:\WINDOWS\system32\net.exe, start, SQL Server (ABC)]  e.g. a list
with three elements.

It appears to be choking on the spaces on "SQL Server (ABC"). I've
tried quoting this but that doesn't work either. Any ideas?
Hoss Spence - 02 Apr 2008 15:20 GMT
> Hi,
>
[quoted text clipped - 11 lines]
> It appears to be choking on the spaces on "SQL Server (ABC"). I've
> tried quoting this but that doesn't work either. Any ideas?

Oops... sorry for post. Quotes worked.
Roedy Green - 02 Apr 2008 15:27 GMT
On Wed, 2 Apr 2008 07:13:06 -0700 (PDT), Hoss Spence
<hossspence@hotmail.com> wrote, quoted or indirectly quoted someone
who said :

>It appears to be choking on the spaces on "SQL Server (ABC"). I've
>tried quoting this but that doesn't work either. Any ideas?

That is unbalanced.  Please post your actual code. The devil is in the
details.
Signature


Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.