Op zondag 04-01-2009 om 12:31 uur [tijdzone +0100], schreef T.Guilleminot: > procedure Run_Command_Wait(TheCommand : string); cdecl; This 'string' is of the type shortstring, and thus will truncate your string to 255 characters. Change it in ansistring or add {$H+} to the beginning of your program. Joost.