I have a two version of my autorun.exe - for windows 7 - for oldier OS I look for a small free tool or program (not in .net or VB) that can be started silently with no window, checks for the OS version and starts an appropriated exe according to.

I wrote a batch, that works, but I can't start it silently from the autorun.inf.

link|improve this question

80% accept rate
feedback

1 Answer

up vote 0 down vote accepted

AutoIT can perform this sort of operation and create a small executable which doesn't require .NET or any other runtime pre-installed.

Switch @OSVersion

    Case "WIN_7"
        Run( "versionA.exe" )

    Case "WIN_VISTA", "WIN_XP"
        Run( "versionB.exe" )

    Case Else
        Run( "versionC.exe" )

EndSwitch
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.