How to Read the File Path


#1

Hi,

I have a task where i need to read the “Path of the file” and that path should be pasted in the other document.
Can you please tell me how can i read the path of the file and store in a variable.

Thanks in advance.


#2

Hi @Srikanth_Annabathina,

Please try to also use System.IO namespace related methods. In this scenario I would suggest you to use the method System.IO.Path.GetFullPath.

https://msdn.microsoft.com/pt-br/library/system.io.path.getfullpath(v=vs.110).aspx


#3

I think this link will be helpful

https://www.uipath.com/kb-articles/how-to-check-if-a-file-or-a-folder-exists


#4

Thank you for the reply.

Can you please elaborate more on the particular use case which you have mentioned above. How can i use the mentioned function. Your explanation is helpful for me.


#5

Use assign activity and store ur file path to variable than use write file activity and save ur variable to that write file


#6

Thank you for the Response. It is working.