Ok, basically I have AMS doing
CDrive is cdrom and sDrive is systemdrive. I do this file.exist for around 50 files. I was hoping maybe setting up a function to do file.exist and switch between cdrive and sdrive and then set it to a variable so I could reduce how much is written, but Im stumped on how to set this up...basically I want a set variable to be the output. It need to search a set place on CDrive and sDrive and then output to the variable the exact location...so for instance, lets say I was doing this with 7zip.exeCode:if File.DoesExist(CDrive.."blah") then File.Run(CDrive.."blah", "/S", "", SW_MINIMIZE, true); end if File.DoesExist(sDrive.."blah") then File.Run(sDrive.."blah", "/S", "", SW_MINIMIZE, true); end
and on page on show it would do somethig like thisCode:function Blah (filename.exe) if File.DoesExist(CDrive.."\\7zip.exe") then variable = CDrive.."\\7zip.exe" if File.DoesExist(sDrive.."\\7zip.exe") then variable = sDrive.."\\7zip.exe"
any help is greatly appreciated.Code:Blah(7zip.exe) File.Run(variable, "/S", "", SW_MINIMIZE, true)

