Hi all! I have a .bat file that I need to run on a machine that runs Linux. Is it possible to run a .bat file under WINE? I have installed WINE and tried writing wine test.bat on the command line but it didn't work. I got the error message, wine: Bad EXE format for H:\Dokument\test.bat Is it only .exe files that can be run under WINE? Thanks, S?nia S?nia Lil?o O2 Strandv?gen 5B 114 51 Stockholm Tel: +46 8 559 310 37 Mobile: +46 73 752 95 74 www.o2.se<http://www.o2.se> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.winehq.org/pipermail/wine-users/attachments/20101022/3e9ee4b0/attachment.htm>
On Fri, 2010-10-22 at 16:10 +0200, S?nia Lil?o wrote:> Hi all! > > I have a .bat file that I need to run on a machine that runs Linux. > > Is it possible to run a .bat file under WINE? >Yes, but you need to run the Windows shell explicitly and tell it to run the .BAT file rather than running interactively: wine cmd /c test.bat Martin
On 10/22/10 7:42 AM, Martin Gregorie wrote:> On Fri, 2010-10-22 at 16:10 +0200, S?nia Lil?o wrote: >> Hi all! >> >> I have a .bat file that I need to run on a machine that runs Linux. >> >> Is it possible to run a .bat file under WINE? >> > Yes, but you need to run the Windows shell explicitly and tell it to run > the .BAT file rather than running interactively: > > wine cmd /c test.bat >If the .bat file calls a DOS program, you might be better off with DOSBox. If it calls a Windows program, Wine is the way to go. James McKenzie