how to copy files to system32 ?

Questions about Wine on Linux
Locked
User avatar
kccheng
Newbie
Newbie
Posts: 2
Joined: Sat Dec 13, 2014 10:36 am

how to copy files to system32 ?

Post by kccheng »

Hi,

I copy one DLL and one OCX file to $HOME/.wine/driver_c/windows/system32.
After I use

wine cmd
cd C:\windows\system32
dir

And I can see a lot of DLLs but I can't find the files I just copied ?
How can I fix this ? Thanks

Regards,
KC
User avatar
dimesio
Moderator
Moderator
Posts: 13373
Joined: Tue Mar 25, 2008 10:30 pm

Re: how to copy files to system32 ?

Post by dimesio »

kccheng wrote: $HOME/.wine/driver_c/windows/system32.
Probably just a typo in your post, but that should be drive_c, not driver_c.
cd C:\windows\system32
Apparently you didn't notice that that doesn't actually do anything. It should be

Code: Select all

cd /d C:\windows\system32
User avatar
kccheng
Newbie
Newbie
Posts: 2
Joined: Sat Dec 13, 2014 10:36 am

Re: how to copy files to system32 ?

Post by kccheng »

dimesio wrote:
kccheng wrote: $HOME/.wine/driver_c/windows/system32.
Probably just a typo in your post, but that should be drive_c, not driver_c.
Sorry, that's a typo.
kccheng wrote:
cd C:\windows\system32
Apparently you didn't notice that that doesn't actually do anything. It should be

Code: Select all

cd /d C:\windows\system32
I'm using CentOS 6x with wine 1.6.1 from EPEL repo. I don't see any different
with/without "/d" option ... in both case, in "wine cmd" environment, I can't
dir the files I copied to $HOME/.wine/drive_c/windows/system32 !!!!

I ask this because I want to register MY.ocx file, and regsvr32 show me
error message "Failed to load DLL MY.ocx"
So I use "wine cmd" and "dir" to check if the file existed or not ... and it's not there !!!
But the file $HOME/.wine/drive_c/windows/system32/MY.ocx does exist !!

Regards,
KC
User avatar
dimesio
Moderator
Moderator
Posts: 13373
Joined: Tue Mar 25, 2008 10:30 pm

Re: how to copy files to system32 ?

Post by dimesio »

Are you sure you copied the file to where you think you did? Do you see it there when you browse with a native file manager?
Locked