I create a lot of temporary index`s in c:\mybrw folder. some do not get deleted.
When exiting program I would like to delete the undeleted temporary index`s. They all start with t and are .ntx files
delete 'c:\mybrw\t*.ntx'.
is there a way to delete *.ntx
Thanks in advance Franco
delete *.ntx files
Moderator: Rathinagiri
delete *.ntx files
All The Best,
Franco
Canada
Franco
Canada
- AUGE_OHR
- Posts: 2093
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Re: delete *.ntx files
hi,
when use a FILE it take some Time before it "free" it.
when it happens in Network it is a SMB2 Problem of "FileInfoCacheLifetime" https://learn.microsoft.com/en-us/previ ... dfrom=MSDN
when use a FILE it take some Time before it "free" it.
when it happens in Network it is a SMB2 Problem of "FileInfoCacheLifetime" https://learn.microsoft.com/en-us/previ ... dfrom=MSDN
have fun
Jimmy
Jimmy
- serge_girard
- Posts: 3309
- Joined: Sun Nov 25, 2012 2:44 pm
- DBs Used: 1 MySQL - MariaDB
2 DBF - Location: Belgium
- Contact:
Re: delete *.ntx files
Franco,
Did you try with FERASE?
FERASE("C:\folder\t*.ntx" )
Did you try with FERASE?
FERASE("C:\folder\t*.ntx" )
There's nothing you can do that can't be done...
Re: delete *.ntx files
hb_FileDelete(<cFileMask> [,<cAttr>]) ➜ lResult
removes files which match given <cFileMask> (it may contain path) and returns .T. if at least one file was deleted. Optional <cAttr> parameter can be used to include system "S" and hidden "H" files. If <cAttr> contains "R" letter then before deleting READONLY attribute is removed.
removes files which match given <cFileMask> (it may contain path) and returns .T. if at least one file was deleted. Optional <cAttr> parameter can be used to include system "S" and hidden "H" files. If <cAttr> contains "R" letter then before deleting READONLY attribute is removed.
Re: delete *.ntx files
Sorry I am away. Will check when I return.
Thanks all.
Thanks all.
All The Best,
Franco
Canada
Franco
Canada
Re: delete *.ntx files
Thanks guys,
Serge, It would not work for me.
Edward, Yours worked perfect .
I create a folder in the c drive of every computer on the network. This is where I send temporary indexes witch all start with tf****.ntx
hb_FileDelete("c:\dir\tf*.ntx")
Franco
Serge, It would not work for me.
Edward, Yours worked perfect .
I create a folder in the c drive of every computer on the network. This is where I send temporary indexes witch all start with tf****.ntx
hb_FileDelete("c:\dir\tf*.ntx")
Franco
All The Best,
Franco
Canada
Franco
Canada