To copy a file use the COPY FILE command...
Copy File my.exe to my.txt
or
Copy File my.txt to my.exe
At the risk of sounding pedantic, you might try looking in the VFP Help File. There's a lot of good stuff in there and if you put the word "copy" in the index search the COPY FILE command is the first thing that pops up in the list of topics.
>Dear Sir,
>
>I refer to your following method. Thanks for helping but I could not understand following lines
>
>Just copy My.ext to My.txt and then when needed (f.ex. My.exe is not usable)
>do backward copy My.txt to My.exe.
>
>How to copy my.exe to My.txt?
>And how to copy My.txt to My.exe?
>
>Sir, Please help.
>
>*--------------------------------------------------------------
>ackup i another copy of your My.exe file. It just don't h
>ave to be same name.
>
>Just copy My.ext to My.txt and then when needed (f.ex. My.exe is not usable)
>do backward copy My.txt to My.exe.
>
>If txt file is (My.txt) is reserved already, you can use antoher text like extension like My.asc or My.dat or even your own extension like My.text or My.tariq. Just extension that virus is not going to bother because the base of its character.
>
>AT