Hi Adrian, >> ... >> Adrian Williams wrote: >>> Phil, >>> Now have slightly different error: >>> >>> Type Commands: missing ',' >>> Object OK >>> Line FUNCION getPathToFile pFile There is a T missing in funcTion! But maybe this is just a typo in your post? Best Klaus -- Klaus Major http://www.major-k.de klaus at major.on-rev.com