Short and long files names
Posted: Tue Jun 15, 2010 8:13 am
I have run into a problem. If I use a long file name that is longer than 8 characters then the short name is converted to a 6character name with a ~1 etc at the end. If the name is longer than 32 characters BR truncates the name at 32 characters.
The problem arises when I try to use a FREE command (or an exists) to locate and get rid of the file. The tilde is translated to a "not" in the command and a dir fails with a 4152 error, exists returns 0. To get rid of the file I have to drop out to the system and do a delete at the system level.
I do notice however, if I know the full file name, rather than using the one returned by BR that the BR DIR command will find it.
PErhaps my solution is to use the system DIR command ratrher than the BR dir command to get the list of files to start with.
Any suggestions?
Long file name
a01_6ndisclosurechecklistnot-for-profit.txt
BR long name
a01_6ndisclosurechecklistnot-for
BR short name
a01_6n~1.txt
The problem arises when I try to use a FREE command (or an exists) to locate and get rid of the file. The tilde is translated to a "not" in the command and a dir fails with a 4152 error, exists returns 0. To get rid of the file I have to drop out to the system and do a delete at the system level.
I do notice however, if I know the full file name, rather than using the one returned by BR that the BR DIR command will find it.
PErhaps my solution is to use the system DIR command ratrher than the BR dir command to get the list of files to start with.
Any suggestions?
Long file name
a01_6ndisclosurechecklistnot-for-profit.txt
BR long name
a01_6ndisclosurechecklistnot-for
BR short name
a01_6n~1.txt