>The exe i am trying to delete is anther exe then the one that running.
If it's in VFP the command you want is the ERASE command:
ERASE C:\FolderPath\MyProgram.EXE
ERASE "C:\Program Files\SomeFolder\MyProgram.EXE"
lcFileNameToErase = "C:\Program Files\SomeFolder\MyProgram.EXE"
ERASE ( lcFileNameToErase )
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up