Re: error? Print Preview

new topic     » topic index » view thread      » older message » newer message

Me wrote:

> Pete wrote:
>
>> On Sat, 20 Sep 2003 23:10:11 -0600, sixs at ida.net wrote:
>>
>>> I am running pptest.exw in Meditor and it says "Can't open
>>> C:\uphoria\Demo\Print.exw" the the message "Press Enter,,,".
>>
>> Ah! The penny drops. It's not coping with a space in the directory
>> name very well. Try renaming the "Print Preview" directory (with a
>> space) to "PrintPreview" (without a space).
>>
>> Can anyone help here, I don't know what else MEditor should do:
>> the variable exe is set to:
>> C:\EUPHORIA\bin\exw.exe "D:\Print Preview\pptest.exw"
>> but
>> 	err_msg = system_exec(exe, 2)
>>
>> dies with the above message. I'm sure putting the quotes round the
>> path&name helped in the past, but they don't seem to anymore.
>
>
> Also for me the following code snippet didn't run as expected.
> Windows 98 always said: "Can't open D:\Print.exw". Very strange!
>
> <begin code>
> sequence exe
> exe = "C:\\EUPHORIA\\bin\\exw.exe \"D:\\Print Preview\\pptest.exw\""
> ? system_exec(exe, 2)
> if getc(0) then end if
> <end code>
>
>
> Using my own function 'system_wait()' works fine, though. smile
>
> <begin code>
> include system_wait.ew
> sequence exe
> exe = "C:\\EUPHORIA\\bin\\exw.exe \"D:\\Print Preview\\pptest.exw\""
> ? system_wait(exe)
> if getc(0) then end if
> <end code>
>
>
> ---------------------------[ system_wait.ew ]---------------------------
> -- by Juergen Luethje
> -- Euphoria 2.3+
> -- works like Euphoria's system_exec()

<big snip>


Using 'system()' works fine, too:

<begin code>
sequence exe
exe = "C:\\EUPHORIA\\bin\\exw.exe \"D:\\Print Preview\\pptest.exw\""
system(exe, 2)
if getc(0) then end if
<end code>

I tested all this with the Euphoria interpreter 2.4.
Rob, is this a bug in system_exec()?

Regards,
   Juergen

-- 
 /"\  ASCII ribbon campain  |  while not asleep do
 \ /  against HTML in       |     sheep += 1
  X   e-mail and news,      |  end while
 / \  and unneeded MIME     |

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu