Acess Downloads Folder

Good afternoon, I’m having trouble accessing the downloads folder on my desktop.

The process consists of downloading a file from the browser and entering the downloads folder to rename the files.

UiPath Studio version 2018.1.1

3 Likes

Hello @AbnerLojacorr,

The activity GetEnvironmentFolder gets the path to the specified system special folder.

If the download folder has not been renamed you can get its path with Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)+"\Downloads" or
Environment.ExpandEnvironmentVariables("%USERPROFILE%\Downloads").

For more information, please go through this link:
https://www.codeproject.com/articles/878605/getting-all-special-folders-in-net

Regards,
Susana

5 Likes

Hi @AbnerLojacorr,

@Susana correct me if i am wrong

Environment.CurrentDirectory can save a file inside the project folder also.

always better to save a file inside your project

Regards,
Arivu

Hi @arivu96 :slight_smile: ,

Environment.CurrentDirectory gives the current execution base path (the project folder) but as far as I have understood @AbnerLojacorr is having trouble accesing the downloads folder.

Regards,
Susana

1 Like

yes you are right but always better to use in our project folder right.

exactly correct…
Thanks @Susana

Good afternoon,

I tried all the options reported, but none of them solved my problem. I am in the testing phase and using the free version of the application, can this affect?

Thanks.

Exactly @Susana, this is my problem!

See my workflow i have created a dynamic path for reading a recently downloaded file from download folder
Readcsv.xaml (118.9 KB)