Set WshShell = createobject(“wscript.shell”)
Set strVer = WshShell.exec(“cmd /c ver”)
How to get ojbect value ?
Need a message box for strVer
Set WshShell = createobject(“wscript.shell”)
Set strVer = WshShell.exec(“cmd /c ver”)
How to get ojbect value ?
Need a message box for strVer
Subject: RE: How to Access Object properties
I’m not sure what you consider to be the “value” of a WshScriptExec object. You can see the list of its properties here: WshScriptExec Object Properties and Methods | Microsoft Learn
If you have further questions about this Microsoft API, you might try a Microsoft forum. If you can’t get the kind of string from the object that you want, IBM can’t help you.