Hi all
I am trying to migrate a project to windows . Move file activity is not taking the string variable as it’s the type IResource. The legacy has a a string variable.
Could anyone pls help me to resolve this ?
Hi all
I am trying to migrate a project to windows . Move file activity is not taking the string variable as it’s the type IResource. The legacy has a a string variable.
Could anyone pls help me to resolve this ?
Hie @Raj_esh If you have a source and destination as string variables:
sourcePath = “C:\source\file.txt”
destinationPath = “C:\destination\file.txt”
sourceResource = New FileInfo(sourcePath)
destinationResource = New FileInfo(destinationPath)
pass this in move file activity.
cheers
It depends on your UiPath.System.Activities, which version have you referenced?
or we would do:
importing namespace: UiPath.Platform.ResourceHandling
and creating an IRessource by: LocalResource.FromPath("c:\abc.def.txt")
So I was using system activity package 22.4.1 upgraded that to 22.10.3 and it got fixed
Perfect, so the topic can be closed by marking the solving post
Forum FAQ - How to mark a post as a solution - News / Tutorials - UiPath Community Forum
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.