The MASM Forum

General => The Campus => Topic started by: TouEnMasm on August 14, 2015, 02:46:07 AM

Title: cvtres environment variable
Post by: TouEnMasm on August 14, 2015, 02:46:07 AM
Hello,
I search if cvtres.exe accept an environment variable like:
set CVTRES=/MACHINE:X64
I don't find this in MSDN

Title: Re: cvtres environment variable
Post by: rrr314159 on August 14, 2015, 03:04:16 AM
the latest cvtres (comes with VS2013 I think) has an option /machine:x64
Title: Re: cvtres environment variable
Post by: TouEnMasm on August 14, 2015, 03:09:48 AM

I know this one,but i need to pass it by an environment variable if possible.

Title: Re: cvtres environment variable
Post by: jj2007 on August 14, 2015, 03:42:11 AM
set $cvtres=/machine:x64

cvtres whatever %$cvtres%
Title: Re: cvtres environment variable
Post by: TouEnMasm on August 14, 2015, 07:12:24 AM
Quoteset $cvtres=/machine:x64
Create a normal environment variable who is not read by cvtres as link do with LINK

Quoteset LINK= /SUBSYSTEM:WINDOWS

Link.exe /DEBUG /debugtype:cv /OUT:%FILE%.exe *.obj
There is no need to add %LINK% in the command line
Title: Re: cvtres environment variable
Post by: jj2007 on August 14, 2015, 07:15:46 AM
Yves,
Get the source for cvtres, add this feature and recompile it :t
Title: Re: cvtres environment variable
Post by: TouEnMasm on August 14, 2015, 05:48:13 PM
Good idea,I phone to Bill(It's a friend of mine) and I get the source code and more

Title: Re: cvtres environment variable
Post by: jj2007 on August 14, 2015, 08:22:49 PM
Quote from: ToutEnMasm on August 14, 2015, 05:48:13 PM
Good idea,I phone to Bill(It's a friend of mine) and I get the source code and more

Yep, that's the right spirit, Yves :t

(in case Bill is too busy, you can still use cvtres whatever %$cvtres% as a workaround)