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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Opening a desktop folder from within IDL [message #64486] Sat, 03 January 2009 17:32
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.")
Re: Opening a desktop folder from within IDL [message #64490 is a reply to message #64486] Fri, 02 January 2009 18:44 Go to previous message
jeffnettles4870 is currently offline  jeffnettles4870
Messages: 111
Registered: October 2006
Senior Member
On Jan 2, 7:41 pm, "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
>   spawn, 'open /Users/'
>   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

-Jeff
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: random number generator
Next Topic: Trouble with plotting ASCII grid.

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

Current Time: Wed Oct 08 19:26:04 PDT 2025

Total time taken to generate the page: 0.00584 seconds