I need to use a Foxpro-DOS program (running under XP) to process inventory counts stored in a text file with a long filename. The data in the filename is useful for processing so I'd like to be able to store that as well, then convert the long filename to a 8.3 format for use in the DOS Foxpro window.
The text file contains inventory counts from a wireless barcode scanner and the filename generated is something like:
01_2_20070512_101530.txt
where 01 is the store, 2 is the scanner ID, 20070512 is the date and 101530 is the time the file was created.
I'd like to store this info in a separate master file and then rename the above file to something meeting the DOS 8.3 convention, e,g. 01270512.txt. And I'd like to automate the process!
Can the low level file reading tools in DOS Foxpro process the LFN filename data? Or does anyone know of a utility which can be called to pass this data in a useable form?
Thanks for any help!
The text file contains inventory counts from a wireless barcode scanner and the filename generated is something like:
01_2_20070512_101530.txt
where 01 is the store, 2 is the scanner ID, 20070512 is the date and 101530 is the time the file was created.
I'd like to store this info in a separate master file and then rename the above file to something meeting the DOS 8.3 convention, e,g. 01270512.txt. And I'd like to automate the process!
Can the low level file reading tools in DOS Foxpro process the LFN filename data? Or does anyone know of a utility which can be called to pass this data in a useable form?
Thanks for any help!