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!

Can Default Save File folder be set programmatically in IE?

Status
Not open for further replies.

rsmock21

Technical User
Oct 31, 2002
7
US
Is there a way to set the default folder in the Save To dialog box that pops up in IE when downloading a file? Based on my experience, it appears IE opens to the folder where the previous file was saved. I am working in an app written in Visual Foxpro and would like to set this folder so the user can open the browser directly to the specified website, and download a file into a specified folder without the user having to navigate to that folder, then the app will then detect the file and proceed. I thought setting the directory in the ShellExecute method arguments may work, but no luck. Does anyone know if this can be set programmatically? I suppose I could hack the registry to do this, but would rather not. Any ideas?

BTW, I posted this in VFP forum, but not much luck there.

Thanks,
Rob
 
The following windows script will set the download directory to C:\Download. Maybe you can adapt it to your language ...

Dim WSHShell
Set WSHShell=Wscript.CreateObject("Wscript.Shell")
WSHShell.RegWrite "HKCU\Software\Microsoft\Internet Explorer\Download Directory", "C:\Download", "REG_SZ"

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top