Consider,
'Shell "C:\Program Files\Microsoft Office\Office10 \EXCEL.EXE" "C:\My Documents\Query .xls"'
This would open Query.xls file in MS Excel for sure,but i have typed manually excel.exe's path in the code. The problem is that i have to run my application in any other computer and i cannot be sure that every computer would have installed excel in the very same path (or not installed at all..).
So,with just knowing the name of the exe file how to find the correct installed path?
(Searching all the drives and folders for excel.exe may be an option,but it may eat up our time and slow down the application)
Anyone has got any alternative ideas?If so pls do share..
All i want to do is open any file with any exe.
'Shell "C:\Program Files\Microsoft Office\Office10 \EXCEL.EXE" "C:\My Documents\Query .xls"'
This would open Query.xls file in MS Excel for sure,but i have typed manually excel.exe's path in the code. The problem is that i have to run my application in any other computer and i cannot be sure that every computer would have installed excel in the very same path (or not installed at all..).
So,with just knowing the name of the exe file how to find the correct installed path?
(Searching all the drives and folders for excel.exe may be an option,but it may eat up our time and slow down the application)
Anyone has got any alternative ideas?If so pls do share..
All i want to do is open any file with any exe.
Comment