I have a project where I am using this code to open files with the .flu extension on them. It works so far:
[code] Dim f As FolderItem
//The actual FileTypes are converted to strings automatically for use
//with GetOpenFolderItem
f = GetOpenFolderItem( fluType )[/code]
The only issue is that it seems to default to opening in the Documents folder in Windows, and I want it to default to opening in the current running folder. How would I do this with GetOpenFolderItem?
aFolderItemDialog.InitialDirectory = newFolderItemValue
or
FolderItemValue = aFolderItemDialog.InitialDirectory
Full or relative path to directory whose contents are displayed when the dialog first appears.
The Filter property controls which files within this directory are visible. On Windows, this defaults to the My Documents directory if no FolderItem is specified.
Bear in mind that SAVING documents into the folder where your app lives is a big no-no.
If the flu files are read-only samples, you should be OK.
But you will need admin rights to save anywhere in program files.