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

Force default folder in form file upload?

Status
Not open for further replies.

AndyGroom

Programmer
May 23, 2001
972
GB
I have a webform displayed in a WebBrowser control in a Visual Basic application to allow users to upload files to my webserver. Unusually for this type of thing, I know in advance the folder they need to browse to (I want them to upload a file which the VB application has generated) and I would like the Browse dialog box to default to that folder but it seems to default to whichever folder was last used by any application for File / Open.

I've tried using ChDir in VB to set the current folder but that doesn't work.

Is there any way I can persuade the Browse box to default to my desired folder?


- Andy
___________________________________________________________________
If a man speaks in a forest and there are no women around to hear him - will he still be wrong?
 
IE has some very high walls to prevent malicious scripts that play with the DOM from doing anything that touches the local filesystem. As a result this isn't available to your VB6 code twiddling the DOM either.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top