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 #73367 is a reply to message #73364] Fri, 05 November 2010 08:37 Go to previous messageGo to previous message
Ludo is currently offline  Ludo
Messages: 7
Registered: May 2008
Junior Member
On 5 nov, 15:53, Heinz Stege <public.215....@arcor.de> wrote:
> 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.

No, I already tried. That's because the program I use (HDFView) is
expecting 0, 1 or more arguments, each one separated by a space. In
your case it would try to open 3 files :
D:\my
dir\my
photo.jpg

So we have on one hand a valid IDL string (I can compile a routine
containing it and print it). On the other hand exactly the same
command can be used manually in Windows shell (cmd.exe) using copy/
paste.
BUT using it as argument in SPAWN causes malfunctions with double-
quotes ( " ).
As I said earlier, using the /NOSHELL keyword (thereby bypassing the
use of a shell, see IDL Help) solved the issue.

Anyway, thanks for your help !
[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: Fri Nov 28 13:30:11 PST 2025

Total time taken to generate the page: 0.00817 seconds