Kbase P26635: How to locate a file when the folder structure is subject to change?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  3/29/2004 |
|
Status: Unverified
GOAL:
How to locate a file when the folder structure is subject to change?
GOAL:
How to find a file with the same name when the folder structure has changed?
FIX:
In DOS, it is possible to specify the following search:
DIR <fileName> /b /s
/b will ensure that only the relevant results are returned (i.e. full path to the file, and not datetime info)
/s searches the current folder and any subfolders therein
You can capture the result of the search with the following simple example:
DEFINE VARIABLE cPath AS CHARACTER FORMAT "x(32)".
INPUT THROUGH DIR sports2000.db /b /s.
REPEAT:
SET cPath.
DISPLAY cPath.
END.
INPUT CLOSE.