Rank: Administration
  Groups: Administrators, Beta Testers Posts: 3,172  Location: Auburn, GA Thanks: 1070 times Was thanked: 520 time(s) in 434 post(s)
  
 
     | 
    
        
            
	      
                Yes, it does more.  It deletes some temporary files, for instance.
  Here is the code FYI:
  	Delete File *.Cdx 	Delete File *.tbk 	Delete File *.bak
  	Delete File (Addbs(.datadir)+"*.CDX") 	Delete File (Addbs(.datadir)+"*.TBK") 	Delete File (Addbs(.datadir)+"*.BAK") 	Delete File (Addbs(.datadir)+"*.TMP") && 	DH 8/17/21 10.0.1
  	*	delete stuff in TMP subdir 	*	Can't just DELETE FILE TMP\*.* because there are some that 	*	are in use whenever foxpro is running.
  	Cnt = Adir(farr, "TMP\*.*")
  	On Error * 	For i = 1 To Cnt 		Delete File ("tmp\"+farr[i,1]) recycle 	Endfor 	On Error
  Note that instead of reindexing, it deletes the index files, forcing a reindex when LOGic restarts and sees they are missing.  Kind of like a new install.
  Let me know if any other questions.
  Tnx/73,
  WN4AZY 
            
             
         
     | 
    | 
         
            1 user thanked WN4AZY for this useful post. 
     | 
    
        
     |