arjun_ta
11 years agoContributor
testedapps path
Hi,
i have added Excel in my tested apps, in my system its path is
C:\Program Files\Microsoft Office\Office14\EXCEL.EXE
but in other system it is
C:\Program Files\Microsoft Office\Office10\EXCEL.EXE
how to make this generic? so that irrespective of Office version it should open the excel file that i want to work on??
i have added Excel in my tested apps, in my system its path is
C:\Program Files\Microsoft Office\Office14\EXCEL.EXE
but in other system it is
C:\Program Files\Microsoft Office\Office10\EXCEL.EXE
how to make this generic? so that irrespective of Office version it should open the excel file that i want to work on??
- [VBScript]
Set foundFiles = aqFileSystem.FindFiles("C:\Program Files\Microsoft Office\", "Excel.exe",True)
If Not foundFiles Is Nothing Then
While foundFiles.HasNext
Set aFile = foundFiles.Next
app = TestedApps.Add(aFile.path)
TestedApps.Items(app).Params.ActiveParams.CommandLineParameters = Chr(34) & "C:\logins.xlsx" & Chr(34)
TestedApps.Items(app).Run
Wend
End if
'if u mean something by this then try this and let me know ur results