Wine can't find c drive!

Questions about Wine on macOS.
Locked
kh2reed
Level 1
Level 1
Posts: 8
Joined: Sat Jun 26, 2010 10:41 pm

Wine can't find c drive!

Post by kh2reed »

Hi,
I am trying to run a game (Touhou 7) on a mac using wine. I installed wine using macports and used the command $ wine $th07e.exe to run my installer
it then gives me this message:

wine: cannot find L"C:\\windows\\system32\\.exe"

I read elsewhere that i should type winecfg and create a fake c drive. But when I look in my drives menu, there is already one labeled c. Why can't it use this? I might be missing information, if I am, I will provide it.
John Drescher

Wine can't find c drive!

Post by John Drescher »

On Sat, Jun 26, 2010 at 11:45 PM, kh2reed <[email protected]> wrote:
Hi,
I am trying to run a game (Touhou 7) on a mac using wine.  I installed wine using macports and used the command $ wine $th07e.exe to run my installer
it then gives me this message:

wine: cannot find L"C:\\windows\\system32\\.exe"

I read elsewhere that i should type winecfg and create a fake c drive.  But when I look in my drives menu, there is already one labeled c.  Why can't it use this?  I might be missing information, if I am, I will provide it.

The $ symbol has a special meaning in the terminal. Specifically it
means that the following part is a variable name. To get around this
single quote the filename.

wine '$th07e.exe'

John
kh2reed
Level 1
Level 1
Posts: 8
Joined: Sat Jun 26, 2010 10:41 pm

Post by kh2reed »

Okay, I quoted the command and it told me the same thing, wine: cannot find L"C:\\windows\\system32\\$th07e.exe"

One thing I remember that might mean something is that the first time I tried to run the game, a small cream colored window with a wine glass and said that it was updating or configuring -- I can't remember. But then it said it could not locate system32 (same as now) and quit.
John Drescher

Wine can't find c drive!

Post by John Drescher »

On Sun, Jun 27, 2010 at 12:10 AM, kh2reed <[email protected]> wrote:
Okay, I quoted the command and it told me the same thing, wine: cannot find L"C:\\windows\\system32\\$th07e.exe"
So my questions are:

What file are you trying to execute? "$th07e.exe" is a strange file name.

If that is correct change directory to the one containing that file.
Wine is looking for it in the virtual windows system32 folder because
that file is not in the current folder.

The command to do that is cd

http://ss64.com/bash/cd.html

John
kh2reed
Level 1
Level 1
Posts: 8
Joined: Sat Jun 26, 2010 10:41 pm

Post by kh2reed »

The file is th07e.exe. It is in its folder on my desktop, so are you saying that I should find the wine folder and put it there instead?

Hmm I must have misread that last error message, it actually said something different from before >_<
kh2reed
Level 1
Level 1
Posts: 8
Joined: Sat Jun 26, 2010 10:41 pm

Post by kh2reed »

I am navigating to the folder containing the .exe before running it, if that is what you mean.
John Drescher

Wine can't find c drive!

Post by John Drescher »

On Sun, Jun 27, 2010 at 12:30 AM, kh2reed <[email protected]> wrote:
The file is th07e.exe.
Then do not prepend the $ to the name. And no quotes are necessary for that.

--
John M. Drescher
John Drescher

Wine can't find c drive!

Post by John Drescher »

 It is in its folder on my desktop, so are you saying that I should find the wine folder and put it there instead?
wine is not going to search for your file. You need to put it in a
place that wine looks.


The default location is

~/.wine/drive_c

John
kh2reed
Level 1
Level 1
Posts: 8
Joined: Sat Jun 26, 2010 10:41 pm

Post by kh2reed »

How can I get to the wine folder? It doesn't show up in a search, and it's not in my home folder. Is it hidden?
kh2reed
Level 1
Level 1
Posts: 8
Joined: Sat Jun 26, 2010 10:41 pm

Post by kh2reed »

Oh wait, its working. Looks like the tutorial I read on the internet wasn't all correct. Thanks!!!!
kh2reed
Level 1
Level 1
Posts: 8
Joined: Sat Jun 26, 2010 10:41 pm

Post by kh2reed »

At least it's reading the other files in the folder. Strange though, whenever I click out of the window then return, it doesn't take any commands and i have to shut it down.
heshere2
Newbie
Newbie
Posts: 1
Joined: Tue Apr 05, 2011 11:47 pm

Post by heshere2 »

@kh2reed

Okay I am having almost the exact same problem, how did you fix it?
kh2reed
Level 1
Level 1
Posts: 8
Joined: Sat Jun 26, 2010 10:41 pm

Post by kh2reed »

heshere2 wrote:@kh2reed

Okay I am having almost the exact same problem, how did you fix it?
Its been a while, I'm glad I had this topic on watch.
I was typing the command wrong, it should be just
Wine th07e.exe
After I typed that it worked fine.
oldefoxx
Level 2
Level 2
Posts: 16
Joined: Wed May 26, 2010 9:09 pm

Re: Wine can't find c drive!

Post by oldefoxx »

Wine knows exactly where to find the C drive. Not sure about the MAC, but under Ubuntu, it is at /home/[username]/.wine/drive_c.

What it is telling you is that it can't find the exe file located there. When I copied the exe file into the ~/.wine/drive_c/windows/system32 folder, it still was not happy, so I don't know what its problem is in that regard.

What you have to do is prefix the path that leads to the exe file to the wine command call, and assuming you still have it in your Downloads folder (again, I don't know about Mac), upur call would look like this:

Code: Select all

wine ~/Downloads/th07e.exe
Looking at your posts again, I see where you were able to use "wine th07e.exe" successfully. Not sure what all you tried up to that point, but this is a simple way of dealing with that particular error.
User avatar
olivierfrdierick
Level 5
Level 5
Posts: 258
Joined: Thu Sep 13, 2012 12:09 pm

Re: Wine can't find c drive!

Post by olivierfrdierick »

@oldefoxx: Please, don't resurrect 5 year old threads that are already solved. What you say add nothing to what was already said and people have certainly moved to other things after such a long time.
sup2069
Newbie
Newbie
Posts: 1
Joined: Sun Sep 13, 2015 8:46 pm

Re: Wine can't find c drive!

Post by sup2069 »

@olivierfrdierick

His post helped me get a program running. Just because he supplied information to a 4 year old thread doesnt mean it cant help new people migrating in.
Locked