I have the following script to put the variable value into the search field of windows explorer Global $file = FileOpen("LastBuild-4_0.txt") ; Check if file opened for reading OK then paste in search field If $file = -1 Then MsgBox(0, "Error", "Unable to open file.") Else Global $line = FileReadLine($file, 2) ShellExecute("Explorer.exe", "N:\DailyBuild\ICE") Sleep(3000) ControlSend("ICE", "", "[CLASS:Search Box; INSTANCE:1]", $line) the value of $line is "4.0.54.13303" (I confirmed it's pulling the right value), but all that gets entered in the search field in windows explorer is the last 3.