mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-10-31 10:11:27 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			312 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			312 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
| Program Example41;
 | |
| 
 | |
| { Program to demonstrate the FileSearch function. }
 | |
| 
 | |
| Uses Sysutils;
 | |
| 
 | |
| Const
 | |
| {$ifdef linux}
 | |
|   FN = 'find';
 | |
|   P = '.:/bin:/usr/bin';  
 | |
| {$else}
 | |
|   FN = 'find.exe';
 | |
|   P = 'c:\dos;c:\windows;c:\windows\system;c:\windows\system32';
 | |
| {$endif}
 | |
| 
 | |
| begin
 | |
|   Writeln ('find is in : ',FileSearch (FN,P));
 | |
| end.
 | 
