1

i need to find the path of the downloads folder in the computer my software is running, i can't do something like "user\downloads" because the software might run on a computer that have a different language and then the folder name wouldn't be downloads.

i thought i could use windows registry or something like that but i haven't found an entry in there that says the path of the downloads folder.

i can also choose in what programming language i write my software to any other programming language(such as c,python or c#) if it will have a better solution.

note:it will run only on windows systems.

how can i do that?

omer12433
  • 199
  • 1
  • 17
  • http://stackoverflow.com/questions/23070299/get-the-windows-download-folders-path – assylias May 05 '14 at 12:30
  • Why do you need that particular directory? The user can change that directory and have it be different for each browser, if they want... it seems like an [XY Problem](http://meta.stackexchange.com/q/66377/251060) – darthbith May 05 '14 at 12:31
  • i need that particular directory because my client asked me to make a software that will deletes duplicate files in his downloads directory and he can barely operate a pc – omer12433 May 05 '14 at 12:32

1 Answers1

2
String home = System.getProperty("user.home");
home = home + "\Download";
Bugs
  • 4,491
  • 9
  • 32
  • 41
woxiangbo
  • 113
  • 1
  • 1
  • 8