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

Home » Public Forums » archive » Spawn and XP
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Spawn and XP [message #44868] Tue, 26 July 2005 13:09 Go to previous message
raouldukey is currently offline  raouldukey
Messages: 15
Registered: November 1999
Junior Member
I am running IDL version 5.3 (yes I know how old it is). Years ago I
wrote a small program that would batch convert PS files to PDF, TIF,
JPEG, etc using the command prompt commands in GhostScript.
Essentially, I would use pickfile and grab the entire directory of PS
files, I would then parse out the filename, and spawn the command:

ps2pdf filename

and would just loop through my list of filenames. I had included the
GS directories in the system path, and it ran without problems. Until
I upgraded to XP last year, then I could no longer get this to work
properly.

I have added the GS directories to the system path variable, and have
confirmed that if I get a command prompt using <Run CMD> or <Run
Command> that I can do the <ps2pdf filename> and it works just fine.
However, when I try the same thing using spawn under XP, it doesn't do
anything (the dos window closes too quickly for me to figure out why
exactly). It seems as if the spawn command is using a dos shell that
doesn't acknowledge the path variable, but I am not sure.

Any help / suggestions? TIA

-Raoul
[Message index]
 
Read Message
Read Message
Previous Topic: Re: IDLgrImage color table and alpha channel ??
Next Topic: Displaying 2D arrays

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

Current Time: Sat Oct 11 12:23:24 PDT 2025

Total time taken to generate the page: 0.55375 seconds