running a wine app from gambas
Posted
#1
(In Topic #1339)
Regular

Dim wineexePath As String
wineexePath = "FileChooser1.SelectedPath"
Dim wineCommand As String
wineCommand = "wine " & wineexePath
Shell wineCommand Wait
I've tried a lot of different snips of code but i'm drawing a complete blank. Am i even close to getting it right?
The Yikes
Posted
Guru

Ie use Shell() to wrap in single quotes
wineCommand = "wine " & Shell(wineexePath)
Shell wineCommand Wait
or
Code (gambas)
- wineCommand = "wine '" & wineexePath & "'
- Shell wineCommand Wait
Or with Exec no quoting is needed
Code (gambas)
help yourself using Debug to show the command you're about to run to see if it looks correct..
Posted
Guru

wineexePath = "FileChooser1.SelectedPath"
try without quotes
wineexePath = FileChooser1.SelectedPath
by quoting that you are trying to load a program called "FileChooser1.SelectedPath" and not the actual SelectedPath property of the FileChooser
1 guest and 0 members have just viewed this.


