I am trying to start an IDL programme from the Windows command line. Lets say I have the following programme:
PRO hello
print, "Hello, I am a IDL script!"
a=bytarr(100,200)
outname='g:\testimage.tif'
WRITE_TIFF, outname, a
END
I want to execute this programme using IDL -e .RUN from the command line as following:
C:\Users\lein_pa>idl -e ".RUN G:/05_Software/01_IDL/IDLWorkspace/Default/hello.pro"
IDL Version 8.2, Microsoft Windows (Win32 x86_64 m64). (c) 2012, Exelis Visual Information Solutions, Inc.
Installation number: xxxxx.
Licensed for use by: xxx
% Compiled module:HELLO.
C:\Users\lein_pa>
As you can see HELLO.pro will be compiled, but no message "Hello, I am a IDL script!" appears on the shell and also testimage.tif is not written to the disk. When I start this programme from the IDL IDE everything works fine.
Can please someone help me? What am I doing wrong?