lcSafety = Set("Safety") lcCmdFile = Addbs(Justpath(Sys(2005)))+"_command.prg" set safety off Strtofile('* Test' + chr(13), 'c:\fox\_command.prg', 1) set safety &lcSafety modify file (lcCmdFile)Then I see the changes in the command file, but, the problem is that if you have set resources on, the file will be overritten when you issue quit, and then you'll lose the changes, you will see that it works if you issue a set resources off prior to quitting.