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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi Guys, I am having trouble del

Status
Not open for further replies.

weedz

Programmer
Dec 5, 2000
718
NL
Hi Guys,

I am having trouble deleting files with DELETE FILE when the file and path has spaces in it.

Code:
lcFile = "C:\Document and setting\MyXMLFile.xml"
lnFileHandle	= FOPEN(lcFile)

IF lnFileHandle > 0
	FCLOSE(lnFileHandle)
	DELETE FILE lcFile
	(or DELETE FILE &lcFile)
ENDIF
Does not remove the file.

Any help is greatly appreciated.

TIA,


Weedz (Edward W.F. Veld)
My private project:Download the CrownBase source code !!
 
If that doesn't work, you can do this:
Code:
DELETE FILE "&lcFile"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top