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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Default directory w/ sdlgfopen

Status
Not open for further replies.

Unwired

Technical User
Feb 1, 2002
11
US
In the following script (copied from help on "sdlgfopen"), how can I set the default path? I would expect it to search C: for all files (C:\*.*), but ususally it searches only the aspect directory.

I am using 4.7 & 4.8.



proc main
string FileName ; String to contain file name.
string FileSpec ; String to contain file spec.

; Get a file name from user by displaying standard Windows
; file open box.

FileSpec = "c:\*.*" ; Set spec to all files in "c:\".
if sdlgfopen "Choose File" FileSpec SINGLE FileName
usermsg "You chose to open `"%s`"." FileName
endif
endproc

Thanks, Rob

 
Are you using Windows 2000? If so, this is a problem that other people and myself have run into. Unfortunately, there is no workaround that I am aware of to display the path you want in the dialog.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top