The following 2 changes to pacman.ijs enable it to work correctly where
J602 is installed to a (Windows OS) directory path containing spaces:

LINE 37 (definition of HTTPCMD & UNZIP)
  HTTPCMD=: jpath '~install/tools/ftp/wget.exe -O %O -o %L -t %T %U'
becomes
  HTTPCMD=: '"',(jpath '~install/tools/ftp/wget.exe'),'" -O %O -o %L -t
%T %U'

LINE 345 (definition of shellcmd)
  shell y
Becomes
  shell dquote y

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Sherlock, Ric
> Sent: Saturday, 29 September 2007 15:14
> To: Beta forum
> Subject: RE: [Jbeta] Directory path issues
> 
> --Sherlock, Ric wrote
> > I installed to "C:\Program Files\j602"
> >  
> > When I run Package Manager it asks if I want to setup the 
> repository 
> > using Internet connection now. If I reply Yes, then I get the 
> > following
> > error:
> > 
> > "Connection failed: 'C:\Program' is not recognized as an 
> internal or 
> > external command, operable program or batch file."
> > 
> > I suspect this is an issue with calling the tools wget or 
> unzip with 
> > spaces in the path.
> Below is the generated string that is given to spawn as a 
> right argument.
> 
> cmd /c C:\Program Files\j602\tools\ftp\wget.exe -O 
> "C:\Program Files\j602\temp\revision.txt" -o "C:\Program 
> Files\j602\temp\httpget.log" -t 2 
> http://www.jsoftware.com/jal/j602/revision.txt
> 
> I have verified that the following works correctly:
> cmd /c C:\Progra~1\j602\tools\ftp\wget.exe -O "C:\Program 
> Files\j602\temp\revision.txt" -o "C:\Program 
> Files\j602\temp\httpget.log" -t 2 
> http://www.jsoftware.com/jal/j602/revision.txt
> 
> Which implies it is a quotes issue. However just adding 
> additional quotes around the wget filename doesn't solve the 
> problem - get the same error as before - according to cmd /? 
> this is because the first and last quote characters get 
> stripped if there are more than two quote characters in the string.
> 
> The following does therefore work:
> cmd /c ""C:\Program Files\j602\tools\ftp\wget.exe" -O 
> "C:\Program Files\j602\temp\revision.txt" -o "C:\Program 
> Files\j602\temp\httpget.log" -t 2 
> http://www.jsoftware.com/jal/j602/revision.txt";
> 
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to