<div dir="ltr">On 2 September 2013 03:43, Walter Bright <span dir="ltr"><<a href="mailto:newshound2@digitalmars.com" target="_blank">newshound2@digitalmars.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">As a followup,<br>
<br>
When I installed VS2010, it created a shortcut on my desktop labelled "Visual Studio x64 Win64 ...". Clicking on that opened a command line window.<br>
<br>
In that window, I could compile and run VC programs from the command prompt using CL, LINK, etc.<br>
<br>
In that window, if I typed:<br>
<br>
SET<br>
<br>
at the prompt, it showed the environment variables set, which included:<br>
<br>
VCINSTALLDIR - where VC was installed<br>
WindowsSdkDir - where the SDK was installed<br>
<br>
This is all dmd needs in order to use VS2010.<br>
<br>
However, I didn't want to have to click on that shortcut just to use -m64, so I merely copied the values VCINSTALLDIR and WindowsSdkDir into my own personal sc.ini, and then dmd -m64 worked fine.<br>
</blockquote></div><br></div><div class="gmail_extra">Ah yes, that batch file... that explains it.</div><div class="gmail_extra">Maybe what you can do is scan the users Program Files for the batch file, and then pull those lines from it? (A bit hackey...)<br>
</div></div>