Set directory to retrieve files from a network drive instead of C:/

I am trying to fetch files from a network drive. Doing this using Directory.GetFiles method. However, I get an error since this method goes to C:/ instead of the shared drive. Would like to set the current directory to be set to the network drive. Please advise.

Thanks,
Meghna

Hello @meghna.b.das ,

Can you provide a screenshot with what you did till now?
Or with the error you get?

Vasile.

Hey, put your activity in try-catch, in catch post get the file for catch pick exception and then inside put log message and type exception.messege (check if it’s a string i don’t remember if not add .tostring) and another log exception.innermessage.tostring.

Post your log after this and we will see what we can do :slight_smile: