On 3/18/2010 14:13, Vincent Snijders wrote:
Mattias Gaertner schreef:
Any windows user out there who knows how to find the right rundll on
all windows platforms?
I don't know, but we could try something like
AppendPathDelim(GetEnvironmentVariable('WinDir'))+'system32\rundll.exe'
first.
that should work on NT based versions of windows... however, as i just wrote in
another post, win9x installs have rundll32.exe in the "WinDir" so, a test is
necessary...
maybe something like
{* winNT style rundll32 location test *}
if
exist(AppendPathDelim(GetEnvironmentVariable('WinDir'))+'system32\rundll.exe')
foo;
else
{* win9x style rundll32 location test *}
if exist(AppendPathDelim(GetEnvironmentVariable('WinDir'))+'rundll.exe')
bar;
i placed the winNT one first because it is likely the most commonly executed on
;)
HTH
--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus