How do I fix the Notepad Issue
Recently I upgraded to Windows 11 with TestComplete and I am facing issues running Notepad for test comparison.
On running the test, I got the error below.
“Cannot find the c:\SESSION:uDpJ5CAjVEOpmP1JCiARJAAAAAEBAAAAAfRxxAIAAAAAAA=txt file.”
I am getting the error with this script below after updating Windows 11.
' check if notepad.exe is running then terminate it
Set p = Sys.WaitProcess("notepad")
if p.Exists then
End if ' End if
' run notepad application
Call TestedApps.notepad.Run(1, True)
' Save values
No, the file name displayed in the error message is not used anywhere in the code. I am getting this error right after the notepad application is launched.
I did a Google search on: Cannot find the c:\SESSION:uDpJ5CAjVEOpmP1JCiARJAAAAAEBAAAAAfRxxAIAAAAAAA=txt file
and there are many solutions offered from Microsoft and other sites. You'll need to look at those and see which one fits your situation.
I tried different solutions offered from Microsoft and other sites but the issue still persists.
However, I uninstalled the latest notepad from windows, now when I execute the test, classic system Notepad is launched and working fine, as displayed in the below screen capture.
Note that the classic system Notepad is used for editing text files when the new version of the Notepad is not available.
The issue presist with New verision of Notepad.