An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
@YOFFE Mike I broke out a very old virtual machine that had VB6 installed. I copied the VB6 console code from Creating a real console application in Visual Basic as well as the code to change the SUBSYSTEM.
I removed all the code from the console application project and replaced it with the code to instantiate and use the scripting FileSystem object.
Built the project and changed the resultant executable SUBSYSTEM . Then I copied the VB6 console application to a Win10 22H2 system and ran it as a scheduled task under SYSTEM account as described for the previous proof of concept.
The VB6 console application completed successfully;y and created the test file in the C:\Users\Public\intergraph folder.
I could not replicate your issue.