LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Games (http://www.linuxquestions.org/questions/linux-games-33/)
-   -   Executing a file in wine (http://www.linuxquestions.org/questions/linux-games-33/executing-a-file-in-wine-264632/)

uphu 12-09-2004 05:23 PM

Executing a file in wine
 
Ok, first of all, I installed Tribes 1. I dunno why but I can get it to work. When I type wine C:\\Program Files\Starsiege Tribes\Tribes.exe it will tell me it cannot find C:\\Program. It's not detecting the space for some reason and I couldn't find any documentation on this.

Secondly, I would like to be able to play wavs outside of a media player seeing as this game uses them. How do I do that?

wapcaplet 12-09-2004 08:25 PM

You need to include a backslash before any spaces in the path/filename, or put the path in quotes:

Code:

wine C:\\Program\ Files\Starsiege\ Tribes\Tribes.exe
or
wine "C:\\Program Files\Starsiege Tribes\Tribes.exe"

The most reliable way, though, may be to change directory ('cd') to that location first, and then just run 'wine Tribes.exe'.

I'm not sure what you mean by playing wavs outside of a media player (if it can play wavs, it's sort of by definition a media player), but perhaps what you want is a command-line tool to do it. If you have SoX installed, you can do this:

Code:

play file.wav

uphu 12-10-2004 02:29 PM

I used quotes but the prompt just goes blank. I dunno how to change to the directory to it because its in C:\\ which doesn't exist in linux.

Eh, I'm new to wine. Do I don't have a clue about it.

wapcaplet 12-10-2004 04:18 PM

Quote:

Originally posted by uphu
I used quotes but the prompt just goes blank. I dunno how to change to the directory to it because its in C:\\ which doesn't exist in linux.
Well, it has to exist somewhere on your path if you hope to run programs that are installed there. If you have a separate Windows installation that you're trying to run it from, then what you know as C:\ is probably located at /mnt/windows or some such. To change directory there, do:

Code:

cd /mnt/windows/Program\ Files/Starsiege\ Tribes
If giving wine a path such as "C:\\..." doesn't work, you could try using the full Linux pathname, like so:

Code:

wine /mnt/windows/Program\ Files/Starsiege\ Tribes/Tribes.exe


All times are GMT -5. The time now is 04:04 AM.