Can't run obs64.exe with a VBScript

GlydeR

New Member
Hello everyone. I prefer portable versions of all programs and I run them with PortableApps Platform. However, this platform doesn't go deep in folders of the portable program – it only recognizes exe's in the root directory (by root I mean here the program's folder and not catalogs that are located there) of the portable program, e.g. if I have 7-Zip installed from PortableApps site in 'Portable 7-Zip' direcory PortableApps Platform will only see the 7-ZipPortable.exe file and won't display any exe's that sit in deeper directories.
OBS as well as Emacs doesn't have executable in it's root directory, so I made a VB Script for launching exe's located in deeper directories and converted them with VBS to EXE program. This worked great with Emacs but doesn't work for OBS – here's an error:
2024-06-30_012617.png

However, when I manually launch obs64.exe OBS works just fine.
Here's my VBScript Code:
Code:
Set WshShell = WScript.CreateObject("WScript.Shell")
Dim exeName: exeName = "bin\64bit\obs64.exe"
Dim statusCode: statusCode = WshShell.Run (exeName, 1, false)
Why it happens?
 
Top