Process Monitor shows the following just after executing the SETLOCAL:
1:34:52.9666881 PM IDE.EXE 23028 RegQueryKey HKCU SUCCESS Query: HandleTags, HandleTags: 0x0
1:34:52.9667141 PM IDE.EXE 23028 RegOpenKey HKCU\AppEvents\Schemes\ SUCCESS Desired Access: Query Value
1:34:52.9667553 PM IDE.EXE 23028 RegQueryValue HKCU\AppEvents\Schemes\(Default) SUCCESS Type: REG_SZ, Length: 18, Data: .Default
1:34:52.9667978 PM IDE.EXE 23028 RegCloseKey HKCU\AppEvents\Schemes SUCCESS
1:34:52.9668287 PM IDE.EXE 23028 RegOpenKey HKCU SUCCESS Desired Access: Query Value
1:34:52.9668544 PM IDE.EXE 23028 RegQueryKey HKCU SUCCESS Query: HandleTags, HandleTags: 0x0
1:34:52.9668839 PM IDE.EXE 23028 RegOpenKey HKCU\AppEvents\Schemes\Apps\.Default\MenuCommand\.Current SUCCESS Desired Access: Query Value
1:34:52.9669340 PM IDE.EXE 23028 RegQueryValue HKCU\AppEvents\Schemes\Apps\.Default\MenuCommand\.Current\(Default) SUCCESS Type: REG_SZ, Length: 2, Data:
1:34:52.9669678 PM IDE.EXE 23028 RegCloseKey HKCU\AppEvents\Schemes\Apps\.Default\MenuCommand\.Current SUCCESS
1:34:52.9669846 PM IDE.EXE 23028 RegCloseKey HKCU SUCCESS
1:34:52.9670002 PM IDE.EXE 23028 RegQueryKey HKCU SUCCESS Query: HandleTags, HandleTags: 0x0
1:34:52.9670156 PM IDE.EXE 23028 RegOpenKey HKCU\AppEvents\Schemes\Apps\.Default\MenuCommand\.Current SUCCESS Desired Access: Query Value
1:34:52.9670472 PM IDE.EXE 23028 RegQueryValue HKCU\AppEvents\Schemes\Apps\.Default\MenuCommand\.Current\Default Flags NAME NOT FOUND Length: 16
1:34:52.9670652 PM IDE.EXE 23028 RegCloseKey HKCU\AppEvents\Schemes\Apps\.Default\MenuCommand\.Current SUCCESS
1:34:52.9670875 PM IDE.EXE 23028 RegOpenKey HKCU SUCCESS Desired Access: Query Value
1:34:52.9671065 PM IDE.EXE 23028 RegQueryValue HKCU\(Default) NAME NOT FOUND Length: 144
1:34:52.9671205 PM IDE.EXE 23028 RegCloseKey HKCU SUCCESS
1:34:52.9671358 PM IDE.EXE 23028 RegQueryKey HKLM SUCCESS Query: HandleTags, HandleTags: 0x0
1:34:52.9671498 PM IDE.EXE 23028 RegOpenKey HKLM\Software\Microsoft\Windows\CurrentVersion SUCCESS Desired Access: Query Value
1:34:52.9671806 PM IDE.EXE 23028 RegQueryValue HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\MediaPath NAME NOT FOUND Length: 144
1:34:52.9671961 PM IDE.EXE 23028 RegCloseKey HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion SUCCESS
1:34:52.9717514 PM IDE.EXE 23028 CreateFile C:\JPSoft\Batches SUCCESS Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
1:34:52.9718042 PM IDE.EXE 23028 QueryBasicInformationFile C:\JPSoft\Batches SUCCESS CreationTime: 2018-03-16 10:25:24 PM, LastAccessTime: 2020-06-27 1:34:00 PM, LastWriteTime: 2020-06-27 1:33:57 PM, ChangeTime: 2020-06-27 1:33:57 PM, FileAttributes: D
1:34:52.9718370 PM IDE.EXE 23028 CloseFile C:\JPSoft\Batches SUCCESS
1:34:53.4100079 PM IDE.EXE 23028 QueryNameInformationFile C:\Program Files\JPSoft\TCMD26\ide.exe SUCCESS Name: \Program Files\JPSoft\TCMD26\ide.exe
1:34:53.8140340 PM IDE.EXE 23028 Process Create C:\WINDOWS\system32\WerFault.exe SUCCESS PID: 5356, Command line: C:\WINDOWS\system32\WerFault.exe -u -p 23028 -s 2532
1:35:02.0129187 PM IDE.EXE 23028 Thread Exit SUCCESS Thread ID: 3108, User Time: 0.0000000, Kernel Time: 0.0000000
1:35:02.0129210 PM IDE.EXE 23028 Thread Exit SUCCESS Thread ID: 22320, User Time: 0.0000000, Kernel Time: 0.0000000
1:35:02.0129225 PM IDE.EXE 23028 Thread Exit SUCCESS Thread ID: 23388, User Time: 0.0000000, Kernel Time: 0.0000000
1:35:02.0129230 PM IDE.EXE 23028 Thread Exit SUCCESS Thread ID: 23596, User Time: 0.0000000, Kernel Time: 0.0000000
1:35:02.0129239 PM IDE.EXE 23028 Thread Exit SUCCESS Thread ID: 22700, User Time: 0.0000000, Kernel Time: 0.0156250
1:35:02.0129388 PM IDE.EXE 23028 Thread Exit SUCCESS Thread ID: 10720, User Time: 0.0000000, Kernel Time: 0.0000000
1:35:02.0129459 PM IDE.EXE 23028 Thread Exit SUCCESS Thread ID: 13476, User Time: 0.5156250, Kernel Time: 1.1406250
1:35:02.0129682 PM IDE.EXE 23028 Thread Exit SUCCESS Thread ID: 18088, User Time: 0.0000000, Kernel Time: 0.2187500
The error results in the above are:
1:34:52.9670472 PM IDE.EXE 23028 RegQueryValue HKCU\AppEvents\Schemes\Apps\.Default\MenuCommand\.Current\Default Flags NAME NOT FOUND Length: 16
1:34:52.9671065 PM IDE.EXE 23028 RegQueryValue HKCU\(Default) NAME NOT FOUND Length: 144
1:34:52.9671806 PM IDE.EXE 23028 RegQueryValue HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\MediaPath NAME NOT FOUND Length: 144