https://bugs.winehq.org/show_bug.cgi?id=44578
Bug ID: 44578 Summary: cscript cannot create file dialogue using vbs ShellDispatch_BrowseForFolder VT_ERROR Product: Wine Version: 3.2 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: stu.axon@gmail.com Distribution: ---
cscript cannot create file dialogs with vbs, which is a shame as it could provide a really simple way to test wine.
First I confirmed a simple message box worked by creating a file hello.vbs containing:
MsgBox "Hello world"
Then running
wine cscript hello.vbs
Then I tried various examples to create file dialogs and none worked, here is one -
Function BrowseForFile() Dim shell : Set shell = CreateObject("Shell.Application") Dim file : Set file = shell.BrowseForFolder(0, "Choose a file:", &H4000) BrowseForFile = file.self.Path End Function MsgBox BrowseForFile
That ran, displaying nothing - this error was in the console -
0009:fixme:shell:ShellDispatch_BrowseForFolder (0x159e98,0,L"Choose a file:",4000,0x33f150 {VT_ERROR: 80020004},0x33f2f8)
This was tested with wine set to emulate a desktop