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

Let User Browse for Specific File

Status
Not open for further replies.

DroopyA

Programmer
Aug 5, 2003
52
0
0
US
Ok, I'm trying to allow the user to browse their computer for a file ending in a specific file extention (in this case .mdf). The problem is, I don't know how. I can get the dialog box to pop up that allows them to browse for folders, but I don't know how to do this for files.
 
Document Type: WSE
item: Global
Version=9.02
Title=test
Flags=01000100
Languages=65 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Japanese Font Name=MS Gothic
Japanese Font Size=9
Progress Bar DLL=%_WISE_%\Progress\WIZ%_EXE_OS_TYPE_%.DLL
Start Gradient=0 0 255
End Gradient=0 0 0
Windows Flags=00000100000000010011110000000110
Message Font=MS Sans Serif
Font Size=8
Pages Modified=00100000001000100000000000000000
Disk Label=Default
Disk Filename=SETUP
Patch Flags=0000000000000001
Patch Threshold=85
Patch Memory=4000
MIF PDF Version=1.0
MIF SMS Version=2.0
FTP Cluster Size=20
Dialogs Version=7
Crystal Format=10111100101100000010001001001001
Step View=&Properties
Variable Name1=_SYS_
Variable Default1=C:\WINNT\System32
Variable Flags1=00001000
Variable Name2=_WIN_
Variable Default2=C:\WINNT
Variable Flags2=00001000
Variable Name3=_WISE_
Variable Default3=C:\Program Files\Wise Installation System
Variable Flags3=00001000
end
item: Search for File
Variable=MYMDB
Pathname List=*.mdb
Default=1
Flags=10000000
end
item: Custom Dialog Set
Name=test
item: Dialog
Title=test
Width=290
Height=238
Font Name=Helv
Font Size=8
item: Push Button
Rectangle=5 175 40 190
Enabled Color=00000000000000001111111111111111
Create Flags=01010000000000010000000000000000
Text=Ok
end
item: Listbox
Rectangle=5 5 154 166
Variable=THEYPICKED
Enabled Color=00000000000000001111111111111111
Create Flags=01010000100000010000000101000001
Flags=0000010000000000
Text=%mymdb%
Text=
end
end
end
item: Display Message
Title=You picked this file
Text=%theypicked%
end
 
Use the standard action, "Prompt for Filename" and mention the fileextension that needs to be displayed. It will solve your purpose.

Cheers...[idea]

Saurabh Kumar, HP GDIC, Bangalore
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top