Re: Opening a desktop folder from within IDL [message #64486] |
Sat, 03 January 2009 17:32 |
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  |
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
|
|
|