Re: running IDL without the DE [message #35156] |
Sat, 17 May 2003 22:31  |
Kelly Dean
Messages: 92 Registered: March 1997
|
Member |
|
|
I've used this method to launch IDL GUIs while I was working on
Windows NT/2000, but if you want "Hello World" to be seen in a MS-DOS
window, change the PRINT, "Hello World" to open and write "hello world"
to a text file, then add a type statement to list the text file in the
batch file.
Also, I use IDLrt.exe instead of IDLde.exe.
Kelly Dean
CSU/ATS
Craig Hamilton wrote:
> Here's how I do it: (maybe there is a simpler way...)
>
> Let's call your IDL program hello.pro, which has
> a main routine named hello.
>
> Create a 'launcher' pro file, named hellox.pro, which
> contains:
> .rnew c:\yourpath\hello.pro
> hello
> exit
>
> Now, create a batch file, named hellox.bat which contains:
> start /min c:\rsi\idl56\bin\bin.x86\idlde @c:\yourpath\hellox.pro
>
> (adjust yourpath accordingly)
>
> When you double click the batch file, it will launch your
> program, with idlde minimized, so you don't notice it.
>
> Hope this helps.
>
> Craig Hamilton
>
> "Eric Inazaki" <einazaki@mac.com> wrote in message
> news:f5eacvo8vs4g92mki4glamr6dj795l9feq@4ax.com...
>
>> I wanted to build a "hello world" script that I could
>> launch w/o having to explicitly startup IDLDE (either
>> double-clicking in Win2K's explorer or through
>> CommandPrompt). It didn't work and I'd like to find
>> out what I shoud be doing. The script itself looks like:
>>
>> pro hello_world
>> print, 'Hello World'
>> end
>>
>> I then followed the steps listed in the "Saving Compiled
>> IDL Programs" section of the "Building IDL Applications"
>> manual (this is for version 5.6). In particular, from the
>> Run menu, I selected Compile All then Resolve Dependancies.
>> Then I typed: "save, /routines, filename='hello_world.sav'.
>>
>> When I double-clicked on hello_world.sav it appeared that
>> some program ran briefly but there was no output. The same
>> thing happened when I tried to launch the program from the
>> CommandPrompt.
>>
>> More generally, I'm trying to build "standalone" IDL apps
>> which use stdin/stdout (a terminal window) as the user
>> interface. (The machines on which these apps run will have
>> either the IDL runtime or a full-up copy of IDL). Are there
>> any examples of this sort of thing on the web or in third
>> party books or even in the IDL supplied docs? (The IDL
>> docs seem to IDLDE centric and there don't seem to be a
>> lot of examples. Not a lot of good ones, anyway).
>>
>> TIA,
>> eric
>>
>
>
>
|
|
|