xfile="myfile.txt" xport="com1" &&-- you can put any com or lpt port or shared device name xstr=CHR(27)+CHR(112)+CHR(0)+CHR(64)+CHR(240) strtofile(xstr,xfile) DECLARE INTEGER CopyFile IN kernel32; STRING lpSrcFile, STRING lpDstFile, INTEGER bFail CopyFile(m.xfile,m.xport, 0)