Jump to content

Recommended Posts

Hi to everyone,

 

I am a newbie to this forum, hope that any expert can help to solve my problem....

 

My problem is, as stated, how i want to run a windows .exe in Linux Environment? I has a task, which require to use a windows .exe to generate a result file, and until now, i has success on generate the result file (i do it on windows XP environment using command prompt). Now, i want to embed this functionality (i.e generate result file) into my website. I am using php, and i think there should be no problem if the environment is Windows Server 2003 or others windows server environment (just using exec() provided in php will work, correct me if i am wrong). But unfortunately, i am using Linux as OS environment.

 

As a result, i don't have any idea to run this .exe on Linux.

 

I think, the worst solution is to change the php environment to Windows base in stead of Linux base. Or perhaps deploy some application like WINE, to run windows application in Linux environment. But neither one is a good solution, the 1st is to troublesome, 2nd is not really  consistent in running windows application.

 

Regards,

chenloong

This really has nothing to do with php, but anyway. The only way you can run exe files within Linux is through wine.

 

You really need to explain more about what this exe actually does. You say it generates a result file.... the result of what? Would this same result even exist on a deferent machine?

 

It may simply be easier to port this exe to Linux, but we'd need to know what it does.

Sometimes wine cant run exe files but sometimes it can.

According to your description your programm is a CLI programm(DOS based).

I dont think Wine can handle it.

If teh programm is made by C or C++ compile its source code in Linux Environment With Gcc and then use that executable File.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.