<div>Try replacing</div><div><blockquote><div>// these errors seem to show up more if I select multiple files or </div><div>// change directories. </div><div>Open_File.lpstrFile:=Pchar(Target_File+#0);</div></blockquote></div><div>with something like</div><div>Move(Target_File, Open_File.lpstrFile, Length(Target_File) + 1);</div><div> </div>