Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Deletion of files

Status
Not open for further replies.

aclamagna

Programmer
Joined
Jan 10, 2002
Messages
5
Location
US
Visual Foxpro 7 SP1.

I have the following code:

store '12345678.tmp' to d_name
delete file &d_name
or
delete file (d_name)

Has anyone experienced this code acting like delete file *.*?

Thanks!
 
Have you tried the ERASE command?

store 'car.dbf' to lcTest
erase &lcmike

Seems to work work for me (deletes just one file) [Note: in VFP 6]
 
Or rather the code was:

store 'car.dbf' to lcTest
erase &lcTest
 
If your substitution results in an empty string, or more specifically, something that evaluates to '.tmp' or '.', some OS's will interpret that to *.* rather than empty.empty.


Dave S.
[cheers]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top