PxPlus User Forum

Twitter Twitter Twitter

Author Topic: Check for damaged files  (Read 720 times)

michaelgreer

  • Diamond Member
  • *****
  • Posts: 129
    • View Profile
Check for damaged files
« 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!

Jane Raymond

  • Staff
  • Diamond Member
  • *****
  • Posts: 280
    • View Profile
    • PVX Plus Technologies
Re: Check for damaged files
« Reply #1 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.
Jane Raymond
Software Developer
PVX Plus Technologies Ltd.