Is there any function to find a file in whole system.
[ 10-07-2005, 04:01 AM: Message edited by: winrunner_new ]
thanks in advance
you can use an external tool like GREP. Pipe the results of it to a text file and parse it from within WinRunner.
the built in functions in WR require for the most part explicit paths.
Here is a link to the GREP for Windows I reference. It is a DOS based command which you can build within WinRunner and use the dos_system() function.
[ 10-07-2005, 06:30 AM: Message edited by: Tony Davis ]
Insanity: doing the same thing over and over again and expecting different results
Or use the DOS-command dir ...
dos_system("dir /S/B c:\\myfile.txt > C:\\tmp\\results.txt");
This will search the whole c:-drive for myfile.txt and writes the results into c:\tmp\results.txt.
Then use the file_...-commands to open results.txt, read it and interpret it ...