[Bug 44578] New: cscript cannot create file dialogue using vbs ShellDispatch_BrowseForFolder VT_ERROR
wine-bugs at winehq.org
wine-bugs at winehq.org
Thu Feb 22 06:57:48 CST 2018
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 at winehq.org
Reporter: stu.axon at 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
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list