I use the debug channel. Here is the output:<br><br>[root@localhost drive_c]# WINEDEBUG=+process,+exec wine ./System.exe<br>trace:process:init_current_directory starting in L&quot;C:\\&quot; 0x10<br>trace:process:__wine_kernel_init starting process name=L&quot;C:\\System.exe&quot; argv[0]=L&quot;./System.exe&quot;
<br>trace:process:set_entry_point setting FT_Thunk at 0x602ae084 to 00000000<br>i: -1<br>ENOENT<br><br>Any idea? Thanks in advance.<br><br>Milo Xu<br><br><div><span class="gmail_quote">On 6/26/07, <b class="gmail_sendername">
Zhongli Xu</b> &lt;<a href="mailto:zhongli.xu@gmail.com">zhongli.xu@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br><br>I tried to call another .exe file in my own exe file by using the system() API.<br>But the return value of system() is -1 and errno is set to ENOENT. It indicates that the another exe file is not found.<br>
<br>
So I copy the another exe to the fake directory: C:\windoes\system32, since wine always find the exe file there.<br>And I also set the environment variable &quot;System&quot; and &quot;Path&quot; in the key HOST_CURRENT_USER/Environment thru regedit.
<br><br>But still, wine couldn&#39;t find the another exe.<br><br>Any help is welcomed.<br><br>Milo Xu<br>
</blockquote></div><br>