I suggest that you create a batch file for this operation instead, and run the batch file from an icon on your desktop. Run the batch file before you start VFP. Or create a link to this file into the Windows startup folder, so it will be run every time you start your computer.
NB! Release won't free any disk space....
>hi,
>i try it as program, and code inside myform(command button) as....
>relase*.dbf
>relase*.xls
>.
>.
>.
>
>i need to do that with small vfp(aplication ). to have space from time to time.at my folder.
>
>thanks.
>
>
>>May I ask you why you do this via a program, I don't see any point?
>>
>>>thank you for reply,
>>>i use it via program, thanks to explain.
>>>
>>>
>>>>>hi all,
>>>>> i try to erase *.fxp,
>>>>> i get error message
>>>>>File cannot be closed because outstanding references exist
>>>>>
>>>>>ERASE *.fxp
>>>>>
>>>>>thanks
>>>>
>>>>If you do this from command window, execute CLEAR PROGRAM first to insure the FXP is not cached in memory. Sometimes I have to execute it twice to clear the programs from memory.