Click here to Skip to main content
15,900,378 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can we set a default path in our system to save a downloaded file in the "File Download" dialog box of Internet Explorer using a java program?
Posted
Updated 9-Jan-11 22:52pm
v2

1 solution

You can change the default download directory by setting this registry key:
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Download Directory
To write to the windows registry using Java you can either use the "reg" command. (type "reg /?" at a command prompt for details of the arguments):
Runtime.getRuntime().exec("reg [Your arguments]");
Or you can use a 3rd party registry library like jRegistryKey[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900