This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How to set dynamic download location?

more options

I need to set default download location as x:\downloads\2012_07 if the current month is July, and x:\downloads\2012_08 if the current month is Aug but not manually ,it should be Automatically, Hence what can I do with prefs.js (i.e) user_pref("browser.download.dir",?) Your help will be highly appreciated.

I need to set default download location as x:\downloads\2012_07 if the current month is July, and x:\downloads\2012_08 if the current month is Aug but not manually ,it should be Automatically, Hence what can I do with prefs.js (i.e) user_pref("browser.download.dir",?) Your help will be highly appreciated.

Chosen solution

prefs.js alone can't do what you want. You would need an addon that had those "date" features to actively change that pref based upon the Windows calendar. Give this addon a try and see how it works for you - don't use it myself.

https://addons.mozilla.org/en-US/firefox/addon/automatic-save-folder/

Read this answer in context 👍 1

All Replies (3)

more options

Chosen Solution

prefs.js alone can't do what you want. You would need an addon that had those "date" features to actively change that pref based upon the Windows calendar. Give this addon a try and see how it works for you - don't use it myself.

https://addons.mozilla.org/en-US/firefox/addon/automatic-save-folder/

more options

thank you. the add-on suggested by you solve my problem. again I am thanking you heartily.

more options

You're welcome!