NNTP-Posting-Date: Thu, 25 Apr 2013 03:03:54 -0500 From: "Chris Uppal" Newsgroups: comp.lang.java.programmer References: Subject: Re: exec problem is JDK 1.7.0_21 Date: Thu, 25 Apr 2013 09:02:23 +0100 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512 X-RFC2646: Format=Flowed; Response Message-ID: Lines: 18 X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-VCVMtSIXtjwfPQefgyhWpten0Kcihtyw1qqWgSTAUlWgOs1Ywiyx2OIfenzlzBOQDHJA/2Ss7Wy6xYA!rEQDNPXR8HlXij6s/SjyVvxBj62vPO1koad88wqbZKb3ygJAGk9VwvARuohIxZXWlXRzhNVFSPY= X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2156 Path: csiph.com!usenet.pasdenom.info!news.stben.net!border3.nntp.ams.giganews.com!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail Xref: csiph.com comp.lang.java.programmer:23638 Sven Köhler wrote: > The specific case is broken. Now what? Then quite possibly you've hit the end of the road. Perhaps you can get around the limits of ProcessBuilder by (say) encoding the desired command-line in base64 and using a helper application which will decode it before passing it to Windows, but even with hacks like that, there's no guarantee that you can pass arbitrary arguments to an arbitrary application. Depending on how its command-line parser is written it might be simply impossible to pass, say, a single double-quote as an argument no matter /what/ string you pass to Windows as the command-line. -- chris