Declare Integer GetUserName In advapi32 String@, Integer@ lcusername = Replicate(Chr(0),255) lres = GetUserName(@lcusername,255) lcuser = Allt(Left(Upper(lcusername),At(Chr(0),lcusername)-1)) LcUserPath = 'C:\DOCUMENTS AND SETTINGS\'+lcuser+'\DESKTOP' USE MyTable IN 0 Select MyTable Copy To '&lcUserPath\Export.txt' Delimited Fields Name,phone,address,city,state,zip Modify File '&lcUserPath\Export.Txt' CLOSE DATABASES RETURNThis creates the text file on the desktop and opens it for edit within VFP for editing etc., but I'd like to have it open on the desktop in another application such as Notepad so that it can remain open after the VFP app is closed.