wine / vcvarsall.bat

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Mathieu Malaterre

wine / vcvarsall.bat

Post by Mathieu Malaterre »

Hi there,

I am trying to play with wine and I cannot figure out how to read a
bat file that would define some env var for me. I followed
instructions from:

http://appdb.winehq.org/objectManager.p ... &iId=14208

And everything seems to be installed nicely for me (thanks to winetricks !):

$ find ~/.wine | grep nmake
/home/mathieu/.wine/drive_c/Program Files/Microsoft Visual Studio
8/VC/bin/nmake.exe

However I cannot figure out how to run the bat file for vs2005.
Could anyone point me in the right direction ?

$ cd ~/.wine/drive_c/Program Files/Microsoft Visual Studio 8/VC
$ wine vcvarsall.bat
wine: could not load L"C:\\Program Files\\Microsoft Visual Studio
8\\VC\\vcvarsall.bat": Bad EXE format for

$ wineconsole "/home/mathieu/.wine/drive_c/Program Files/Microsoft
Visual Studio 8/VC/vcvarsall.bat"
It quickly open up a terminal, but close it afterward

Thanks !
--
Mathieu
User avatar
dimesio
Moderator
Moderator
Posts: 13369
Joined: Tue Mar 25, 2008 10:30 pm

Re: wine / vcvarsall.bat

Post by dimesio »

Mathieu Malaterre wrote:
However I cannot figure out how to run the bat file for vs2005.
Could anyone point me in the right direction ?

$ cd ~/.wine/drive_c/Program Files/Microsoft Visual Studio 8/VC
$ wine vcvarsall.bat
wine: could not load L"C:\\Program Files\\Microsoft Visual Studio
8\\VC\\vcvarsall.bat": Bad EXE format for
wine cmd /c vcvarsall.bat
Mathieu Malaterre

wine / vcvarsall.bat

Post by Mathieu Malaterre »

On Mon, Jun 29, 2009 at 3:03 PM, dimesio<[email protected]> wrote:
Mathieu Malaterre wrote:

However I cannot figure out how to run the bat file for vs2005.
Could anyone point me in the right direction ?

$ cd  ~/.wine/drive_c/Program Files/Microsoft Visual Studio 8/VC
$ wine vcvarsall.bat
wine: could not load L"C:\\Program Files\\Microsoft Visual Studio
8\\VC\\vcvarsall.bat": Bad EXE format for

wine cmd /c vcvarsall.bat
That seems to do something, however it sill does not open the cmd with
my prepared envirionment (a bunch of env vars setup).

thanks again !

Log:

$ wine cmd /c vsvars32.bat
Setting environment for using Microsoft Visual Studio 2005 x86 tools.


--
Mathieu
John Drescher

wine / vcvarsall.bat

Post by John Drescher »

On Mon, Jun 29, 2009 at 9:22 AM, Mathieu
Malaterre<[email protected]> wrote:
On Mon, Jun 29, 2009 at 3:03 PM, dimesio<[email protected]> wrote:
Mathieu Malaterre wrote:

However I cannot figure out how to run the bat file for vs2005.
Could anyone point me in the right direction ?

$ cd  ~/.wine/drive_c/Program Files/Microsoft Visual Studio 8/VC
$ wine vcvarsall.bat
wine: could not load L"C:\\Program Files\\Microsoft Visual Studio
8\\VC\\vcvarsall.bat": Bad EXE format for

wine cmd /c vcvarsall.bat
That seems to do something, however it sill does not open the cmd with
my prepared envirionment (a bunch of env vars setup).

thanks again !

Log:

$ wine cmd /c vsvars32.bat
Setting environment for using Microsoft Visual Studio 2005 x86 tools.
It closed on my system as well. But

wine cmd /k

kept open a command prompt. Possibly inside that prompt you can run vcvars32.bat

John
Mathieu Malaterre

wine / vcvarsall.bat

Post by Mathieu Malaterre »

On Mon, Jun 29, 2009 at 3:32 PM, John Drescher<[email protected]> wrote:
On Mon, Jun 29, 2009 at 9:22 AM, Mathieu
Malaterre<[email protected]> wrote:
On Mon, Jun 29, 2009 at 3:03 PM, dimesio<[email protected]> wrote:
Mathieu Malaterre wrote: wine cmd /c vcvarsall.bat
That seems to do something, however it sill does not open the cmd with
my prepared envirionment (a bunch of env vars setup).

thanks again !

Log:

$ wine cmd /c vsvars32.bat
Setting environment for using Microsoft Visual Studio 2005 x86 tools.
It closed on my system as well. But

wine cmd /k

kept open a command prompt. Possibly inside that prompt you can run vcvars32.bat

John
$ wine cmd /k /c vsvars32.bat

seems to be doing exactly what I was looking for.

Thanks,
--
Mathieu
Locked