Your Products have been synced, click here to refresh
Sub Main Shell "wscript C:\Users\QS\Desktop\test.vbs", vbNormalFocus End Sub
CS2 =SCRIPT/FILENAME= C:\USERS\QS\DESKTOP\TEST.BAS FUNCTION/Main,SHOW=YES,, STARTSCRIPT/ ENDSCRIPT/
dim Network set Network = CreateObject("WScript.Network") MsgBox "" & Network.UserName MsgBox "" & Network.ComputerName
Good Day,
This seems to be working in 2021.2
Basic Script:
Sub Main Shell "wscript C:\Users\QS\Desktop\test.vbs", vbNormalFocus End Sub
pcDMIS Call the basic Script:
CS2 =SCRIPT/FILENAME= C:\USERS\QS\DESKTOP\TEST.BAS FUNCTION/Main,SHOW=YES,, STARTSCRIPT/ ENDSCRIPT/
the *.vbs script i used (shows ComputerName)
dim Network set Network = CreateObject("WScript.Network") MsgBox "" & Network.UserName MsgBox "" & Network.ComputerName
EXTERNALCOMMAND/NO_DISPLAY, NO_WAIT ; path_to_exe\wscript.exe "C:\Users\QS\Desktop\test.vbs"
just like @ Lake Monster said
This also works with external command, you only have to specify the path to wscript.exe
EXTERNALCOMMAND/NO_DISPLAY, NO_WAIT ; path_to_exe\wscript.exe "C:\Users\QS\Desktop\test.vbs"
(path_to_exe was to long, please fill in your own path)
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |