OPEN "O",1,"PRINT.TMP" PRINT #1, "Just testing the code." CLOSE 1 SHELL "C:\PATH\WORDPAD.EXE" That's all there is to it.