Forum Discussion

stega's avatar
stega
Contributor
12 years ago

ExcelDriver - search file

I'm using DDT.ExcelDriver and i want to use a file from the same folder where the script is.

I don't want to burn in the path, i want testcomplete to search the file first in the same folder.

Thank you.
  • Hi Gabor



    Use following statement to get file from script folder.



    var Driver = DDT.ExcelDriver("script\\test.xlsx", "Sheet1", true);
  • Hi Gabor



    Use following statement to get file from script folder.



    var Driver = DDT.ExcelDriver("script\\test.xlsx", "Sheet1", true);