I have a batch file that runs upon start-up. It has worked FINE from Win3 onwards, modified as necessary for each version of Windows. However, now I've got WinX, it doesn't work as it used to.
Specifically, this line works just FINE:-
Start "C:\Program Files (x86)\Microsoft Office\Office14\WINWORD.EXE" "C:\Data\My WORD Documents\My File.docx"
... but NONE of these commands below does what I want it to, i.e. to load Excel and open a file, then get on with the Batch File:-
1.
"C:\Data\Excel\My File.xlsm"
2.
Start "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Office\Microsoft Excel 2010.exe" "C:\Data\Excel\My File.xlsm"
3.
Start "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Office\Microsoft Excel 2010.exe"
4,
Start "C:\Program Files (x86)\Microsoft Office\Office14\Excel.exe" "C:\Data\Excel\My File.xlsm"
5.
"C:\Program Files (x86)\Microsoft Office\Office14\Excel.exe"
No. 5 works, but a) it (obviously) doesn't load the file I want, and b) the Batch File then hangs.
Help !