Error when using dynamic download path

Hi,

I am currently facing an issue that when I use a dynamic download path in UiPath Studio, it will automatically go through my onedrive to my download folder which does not work How do I make it so that it goes to my normal download folder

This is the code I used : Path.GetDirectoryName(Environment.GetFolderPath(Environment.SpecialFolder.Personal)) + “\Downloads”

Thanks

HI @JCEY

Try with this expression

Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)+"\Downloads" 

Environment.ExpandEnvironmentVariables("%USERPROFILE%\Downloads")

image

Regards
Gokul

Thank you so much for the help
I realised the code I was using was actually wrong and I did not even need the PathGetDirectoryName

Once again thank you :slight_smile:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.