How do I do this?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
jnewl
Newbie
Newbie
Posts: 3
Joined: Wed Jul 23, 2008 7:45 pm

How do I do this?

Post by jnewl »

I'm new to Linux and Wine, so I need a little help. How do I run a program under Wine that performs an operation on a third file? IOW, I need to run the following DOS command line:

C:\Program Files\Xprogram> mod.exe r64.dll

How do I do this under Wine? I tried opening a terminal window and typing

$ wine home\[restofpathname]\mod.exe r64.dll

But I got an error saying it couldn't find mod.exe
John Drescher

How do I do this?

Post by John Drescher »

On Wed, Jul 23, 2008 at 8:54 PM, jnewl <[email protected]> wrote:
I'm new to Linux and Wine, so I need a little help. How do I run a program under Wine that performs an operation on a third file? IOW, I need to run the following DOS command line:

C:\Program Files\Xprogram> mod.exe r64.dll

How do I do this under Wine? I tried opening a terminal window and typing

$ wine home\[restofpathname]\mod.exe r64.dll

But I got an error saying it couldn't find mod.exe
\ in the path will not work without quotes around the whole path or \\
instead of \


John
jnewl
Newbie
Newbie
Posts: 3
Joined: Wed Jul 23, 2008 7:45 pm

Post by jnewl »

Ah, thank you. So are you saying that the command I typed should work as long as I use quotes or double slashes?

I just tried

$ wine "home\[restofpathname]\mod.exe" r64.dll

and it still says it can't find mod.exe. What am I doing wrong?

I also tried using the double slashes, but it doesn't recognize two word directory names ("Program Files") using that method. I'm not sure what I'm supposed to do in that case. Like I said, I'm a complete noob to Linux.
Tlarhices
Level 4
Level 4
Posts: 101
Joined: Sun Mar 02, 2008 9:28 pm

Post by Tlarhices »

jnewl wrote:Ah, thank you. So are you saying that the command I typed should work as long as I use quotes or double slashes?

I just tried

$ wine "home\[restofpathname]\mod.exe" r64.dll

and it still says it can't find mod.exe. What am I doing wrong?

I also tried using the double slashes, but it doesn't recognize two word directory names ("Program Files") using that method. I'm not sure what I'm supposed to do in that case. Like I said, I'm a complete noob to Linux.
Here you are using a Unix path, so you should use '/' insted of '\'
But the best for wine is to cd in the exe folder before starting it. To do this :
cd "/home/[restofpathname]"
wine mod.exe r64.dll

See this for more details :
http://wiki.winehq.org/FAQ#head-3b297df ... b8edc21619

And :
http://www.winehq.org/site/docs/wineusr-guide/running
Gert van den Berg

How do I do this?

Post by Gert van den Berg »

On Thu, Jul 24, 2008 at 4:38 AM, jnewl <[email protected]> wrote:
Ah, thank you. So are you saying that the command I typed should work as long as I use quotes or double slashes?

I just tried

$ wine "home\[restofpathname]\mod.exe" r64.dll

and it still says it can't find mod.exe. What am I doing wrong?
You need to use single quotes if you want the shell to ignore escape
sequences (starting with '\')

http://learnlinux.tsf.org.za/courses/bu ... #SS_quotes

I also tried using the double slashes, but it doesn't recognize two word directory names ("Program Files") using that method. I'm not sure what I'm supposed to do in that case. Like I said, I'm a complete noob to Linux.
You can use double / single quotes around the space or escape the space:
e.g. cat "~/some folder with spaces/file.txt" or
cat ~/some\ folder\ with\ spaces/file.txt or
cat ~/some" "folder" "with" "spaces/file.txt
jnewl
Newbie
Newbie
Posts: 3
Joined: Wed Jul 23, 2008 7:45 pm

Post by jnewl »

Success! Thanks very much for all the help, guys. And thanks for the links as well. I'm going to study up, I promise :D
Gert van den Berg

How do I do this?

Post by Gert van den Berg »

On Thu, Jul 24, 2008 at 4:38 AM, jnewl <[email protected]> wrote:
Ah, thank you. So are you saying that the command I typed should work as long as I use quotes or double slashes?

I just tried

$ wine "home\[restofpathname]\mod.exe" r64.dll

and it still says it can't find mod.exe. What am I doing wrong?
You need to use single quotes if you want the shell to ignore escape
sequences (starting with '\')

http://learnlinux.tsf.org.za/courses/bu ... #SS_quotes

I also tried using the double slashes, but it doesn't recognize two word directory names ("Program Files") using that method. I'm not sure what I'm supposed to do in that case. Like I said, I'm a complete noob to Linux.
You can use double / single quotes around the space or escape the space:
e.g. cat "~/some folder with spaces/file.txt" or
cat ~/some\ folder\ with\ spaces/file.txt
Kari Hurtta

How do I do this?

Post by Kari Hurtta »

"Gert van den Berg" <[email protected]> writes in gmane.comp.emulators.wine.user:
On Thu, Jul 24, 2008 at 4:38 AM, jnewl <[email protected]> wrote:
Ah, thank you. So are you saying that the command I typed should work as long as I use quotes or double slashes?

I just tried

$ wine "home\[restofpathname]\mod.exe" r64.dll

and it still says it can't find mod.exe. What am I doing wrong?
You need to use single quotes if you want the shell to ignore escape
sequences (starting with '\')

http://learnlinux.tsf.org.za/courses/bu ... #SS_quotes

I also tried using the double slashes, but it doesn't recognize two word directory names ("Program Files") using that method. I'm not sure what I'm supposed to do in that case. Like I said, I'm a complete noob to Linux.
You can use double / single quotes around the space or escape the space:
e.g. cat "~/some folder with spaces/file.txt" or
cat ~/some\ folder\ with\ spaces/file.txt or
cat ~/some" "folder" "with" "spaces/file.txt
No. You can not put ~ inside of quotes -- it is expanded by shell:

hurtta@Hurtta06k:~$ ls -d "~"
ls: ~: No such file or directory
hurtta@Hurtta06k:~$ ls -d ~
/home/hurtta
hurtta@Hurtta06k:~$

/ Kari Hurtta
hendrik

How do I do this?

Post by hendrik »

On Thu, Jul 24, 2008 at 05:54:09AM +0200, Gert van den Berg wrote:
On Thu, Jul 24, 2008 at 4:38 AM, jnewl <[email protected]> wrote:
Ah, thank you. So are you saying that the command I typed should work as long as I use quotes or double slashes?

I just tried

$ wine "home\[restofpathname]\mod.exe" r64.dll
Isn't the second \ on the wrong side of the close bracket?

-- hendrik
Locked