|
fileLocate |
|
fileLocate( const filename, // name of file to search const varname) // environment variable with path's Searches a file in all directories listed in a specific environment variable as PATH, INCLUDE, LIB and so on. Returns fully qualified pathname of found file. If file is not found an empty string is returned. Example:
var zip = fileLocate('pkunzip2.exe', 'path');
if (zip == '') throw 'pkunzip2.exe not found';
sysLog('zip = '|zip); // 'zip = f:\ibk\pbin\pkunzip2.exe'
|
||||||||
| Copyright © IBK Landquart | Last revision: 27.05.2002 | << Back Top Next >> |