Is drive G: a drive of local hard disk or a network drive?
Most browsers are configured by default to block execution of scripts stored on network drives or network resources like a shared folder accessed using UNC path. The Microsoft Edge WebView2 Runtime could be no exception regarding this security limitation as far as I could find out with some searches in world wide web although my own test as described below returned a different result because of the execution of an UltraEdit script with Edge WebView2 from a network drive worked fine.
It is a currently
known issue that the
Fixed Version of the WebView2 Runtime does not work at all on a network drive. That does perhaps not matter here because
I think, but do not know it for sure, UltraEdit uses the automatically updated
Evergreen Runtime, but I would not be surprised that the execution of the script is moved to a local drive and executed from within UltraEdit.
I copied
header.js as installed with UltraEdit to a shared folder on network-attached storage of my company connected as network drive with a drive letter and accessed from home using a VPN tunnel, inserted at top of the script file on network drive
// @Engine=WebView2, saved and closed the script file, added the script on network drive to the
Script list, opened a new file and executed the script on network drive from the
Script list. That worked as I could see in the output window showing that WebView2 was used as script engine and of course the new file on which the header lines were added by the script.
I could see further that UltraEdit or Edge WebView2 created in directory
%APPDATA%\IDMComp\UltraEdit a subdirectory
EWebView with subdirectories and files taking in total 21,749,880 bytes.
Is the directory with the application data files of UltraEdit in your configuration also in the directory
%APPDATA%\IDMComp\UltraEdit on a local drive or is the
UEINIDIR environment variable or the command line option
/i= used for using a different directory on a network drive as UltraEdit application data directory with the INI file and all other user configuration files?
Do you use
English UltraEdit on
English Windows or UltraEdit in a different language or Windows in a different language?
I could be helpful to download, extract to a directory on local drive, and run as administrator the free Windows Sysinternals (Microsoft) tool
Process Monitor to find out what is going on in background on Edge WebView2 is started by UltraEdit on script execution.