I'm trying to run below vbscript in Linux using Wine, but it doesn't work. Other vbscript functions are working as expected.
Wine Version : wine-5.0.3 (Ubuntu 5.0.3-3) Command : wine cscript ./test_rnd.vbs
VBS:
On Error Resume Next
WScript.Echo "Before Rnd"
Rnd -1
WScript.Echo "After Rnd"
If Err.Number <> 0 Then
WScript.Echo "Error : " & Err.Number & ": " & Err.Description
End If
OutPut using Wine:
This script is working fine in Windows.
Do i need to install any other wine dependency ? if you have any alternative solution to execute VBS in Linux please mention.



Errset? - CherryDTOn Errorhandler, what error doesErrcontain? - CherryDTRandomizebefore you tryRnd? I can't find any information about this online, I guess a possibility is that it's just not implemented. Maybe you should ask at the Wine forums too. - CherryDT