I am a novice at scripting and would like some one to point me in the right direction for the code below
$ilocation = "c:"
MsgBox(0, "", $ilocation)
;how do I run a program using the content of the variable assigned above?
;the line below which i have tried many variations of does not work
;Run $ilocation ("\temp\myprogram.exe")
; the line below is what im trying to achieve using $ilocation in place of the "c:" so that if I change" $ilocation" the install path
; changes
;run ("c:\temp\myprogram.exe")
any help would be appriciated thanks!