Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to set the dialogbox path for tk_getSaveFile?

Status
Not open for further replies.

RajVerma

Programmer
Jun 11, 2003
62
DE
hi all,
is it possible to set the path in which dialog box has to open when we use tk_getSaveFile(or tk_getOpenFile). by default it opens in the path of the user, but wat to do if I want it to open in some other dir by default?
thanx,
Raj.
 
use the -intialdir option. As it says in the man page:

-initialdir directory
Specifies that the files in directory should be displayed when the dialog pops up. If this parameter is not specified, then the files in the current working directory are displayed. If the parameter specifies a relative path, the return value will convert the relative path to an absolute path. This option may not always work on the Macintosh. This is not a bug. Rather, the General Controls control panel on the Mac allows the end user to override the application default directory.


Bob Rashkin
rrashkin@csc.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top