My.Computer.FileSystem.DeleteDirectory(partcode_test,FileIO.DeleteDirectoryOption.DeleteAllContents)
this is my code ’ partcode_test ’ is the Argument but it giving a error
Did you set argument for Invoke Code?
Because your variables isn’t automatically connected to your workflow, you have to make arguments to send values in Invoke Code activity
yes i set it variable and argument both are same name
Surround with Try Catch to get more information about exception.
Writing exception.ToString will show you more accurate exception message.
Can you place a messagebox and give partcode_test to display the path you are passing
You can use Path Exists activity to check your path is exist
Use IF condition and in true you can place the invoke code, So if the path exists then only it will execute the code
Hope this helps you
Thanks
i found -
you can do it just put the path by assign activity and put the variable in argument sector
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.