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

Home » Public Forums » archive » Re: Opening a desktop folder from within IDL
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: Opening a desktop folder from within IDL [message #64486] Sat, 03 January 2009 17:32 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Jeff N. writes:

> On Jan 2, 7:41=A0pm, "M. Katz" <MKatz...@yahoo.com> wrote:
>> From within IDL (without using a DLL) is it possible to open up a
>> given folder on the desktop?
>>
>> I know that on Mac OSX, you can do this
>> =A0 spawn, 'open /Users/'
>> =A0 spawn, 'open ' + complete_path
>>
>> What would the equivalent Windows and Linux commands be?
>>
>> I am interested in doing this so I can give users a GUI button that
>> quickly opens a "target" directory where output files are written.
>>
>> Thanks, M.
>
> On windows you could use
> spawn, 'explorer ' + complete_path

Mattia Vaccari suggests one or the other of these possibilities might
work on a LINUX box:

spawn, 'xdg-open ' + complete_path
spawn, 'gnome-open ' + complete_path
spawn, 'see ' + complete_path

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Previous Topic: random number generator
Next Topic: Trouble with plotting ASCII grid.

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

Current Time: Fri Oct 10 14:27:05 PDT 2025

Total time taken to generate the page: 1.12281 seconds