comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: SPAWN and strings
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: SPAWN and strings [message #73372 is a reply to message #73367] Fri, 05 November 2010 07:53 Go to previous messageGo to previous message
Heinz Stege is currently offline  Heinz Stege
Messages: 189
Registered: January 2003
Senior Member
On Fri, 5 Nov 2010 03:49:53 -0700 (PDT), Ludo wrote:

> I'm running IDL 7.1 on Windows XP SP2
> I tried this in the command line (cmd.exe) :
>
>> "C:\Program Files\myDir\myProg.exe" "C:\directory name with spaces\myFile.h5"
>
> It works.
>
> When I try the same command with SPAWN, it doesn't work. (I put spaces
> around ' and " for an easy reading, in my command there aren't any
> spaces.)
>
> SPAWN, ' "C:\Program Files\myDir\myProg.exe" "C:\directory name with
> spaces\myFile.h5" '
>
> It tries to lauch C:\Program, just like there weren't any quotes
> ( " ). I have the impression that SPAWN can't handle more than two "
> in a string. Why ?
>
> As expected, if my working directory is "C:\directory name with
> spaces", the following instruction works perfectly :
>
> SPAWN, ' "C:\Program Files\myDir\myProg.exe" myFile.h5'
>
> This one fails :
>
> SPAWN, ' "C:\Program Files\myDir\myProg.exe" "myFile.h5" '
>
> Did I miss something ? Some trick in strings management ?
>

Does it work, to write the 2nd filename without any quotes:
SPAWN,'"C:\Program Files\myDir\myProg.exe" C:\directory name with
spaces\myFile.h5'

On my windows
spawn,'"C:\Program Files\IrfanView\i_view32.exe" D:\my dir\my
photo.jpg'
is working.

Can't eyplain why. It is windows. ;-)

HTH, Heinz
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: How to average every nth data?
Next Topic: Re: MultiDrizzle and IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 14:10:59 PDT 2025

Total time taken to generate the page: 1.76702 seconds