WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: stanl on September 20, 2020, 04:55:28 AM

Title: Where is my CLR?
Post by: stanl on September 20, 2020, 04:55:28 AM
Code (WINBATCH) Select


;Winbatch 2020A - CLR location
ObjectClrOption('useany', 'System')
oCLR = ObjectClrNew('System.Runtime.InteropServices.RuntimeEnvironment')
runtime = oCLR.GetRuntimeDirectory()
oCLR =0
Message("CLR Runtime Directory",runtime)
Exit