Forum Discussion
Azeddin_Margani
Contributor
Hi,
Changed the code to: var sPath = "C:\\Files\\MyFile.txt"; and still getting the same error.
tristaanogre
7 years agoEsteemed Contributor
I set up the same file path and file and ran that code without error. So, the problem is not in the code.
Check your permissions on the "Files" folder. What it seems is that the file is currently not available to be opened, possibly because it is permission controlled by something. Also, if the file is open in some other process, the automation might not be able to open it.
Related Content
- 2 months agoStoplight