PxPlus User Forum

Main Board => Discussions => Programming => Topic started by: michaelgreer on November 18, 2021, 08:10:08 AM

Title: Check for damaged files
Post by: michaelgreer on November 18, 2021, 08:10:08 AM
Has anyone worked to incorporate *ufac into a program that will scan an entire directory and check all PVX data files therein?  I'm sure we can pull this off but wanted to check if someone else has already done this.

Thanks!
Title: Re: Check for damaged files
Post by: Jane Raymond on November 18, 2021, 08:58:56 AM
This is not a total solution, but you can use the *dirtree utility to walk a directory tree and return a list of files. (The program is self-documented if you list it.) You can then loop through the file list, opening the files and using the FIB() function to determine their type, and go from there.