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
https://bugs.winehq.org/show_bug.cgi?id=44578
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|cscript cannot create file |ShellDispatch::BrowseForFol |dialogue using vbs |der is not implemented |ShellDispatch_BrowseForFold | |er VT_ERROR | Status|UNCONFIRMED |NEW Component|-unknown |shell32 Ever confirmed|0 |1
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- Confirming, BrowseForFolder() method is not implemented.
https://bugs.winehq.org/show_bug.cgi?id=44578
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |minor
https://bugs.winehq.org/show_bug.cgi?id=44578
--- Comment #2 from Nikolay Sivov bunglehead@gmail.com --- I sent a patch that works for this script, https://www.winehq.org/pipermail/wine-devel/2018-February/123173.html.
https://bugs.winehq.org/show_bug.cgi?id=44578
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Fixed by SHA1| |d3f32bd0c70291829cbd98b1c09 | |a54ba11f2579a Status|NEW |RESOLVED
--- Comment #3 from Nikolay Sivov bunglehead@gmail.com --- Fixed with https://source.winehq.org/git/wine.git/?a=commit;h=d3f32bd0c70291829cbd98b1c....
https://bugs.winehq.org/show_bug.cgi?id=44578
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 3.3.
https://bugs.winehq.org/show_bug.cgi?id=44578
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |3.0.x
https://bugs.winehq.org/show_bug.cgi?id=44578
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|3.0.x |---
--- Comment #5 from Michael Stefaniuc mstefani@winehq.org --- Removing the 3.0.x milestone from bugs included in 3.0.1.