Hello,
How can I detect OS and run and exe by OS name? if OS = XP file.run "test.exe" or if OS = Vista file.run "test2.exe". Any help would be great. thanks
Code:-- Get the name of the OS. os_name = System.GetOSName(); if os_name = XP then Dialog.Message("Information", "Installing application for "..os_name..".", MB_OK, MB_ICONINFORMATION); File.run "Test.exe" elseif os_name = Vista then Dialog.Message("Information", "Installing application for "..os_name..".", MB_OK, MB_ICONINFORMATION); File.run "Test1.exe" end

Reply With Quote


