--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

Reply via email to