run Office Online question


i need following.    machine abc not have office installed locally.   user logged machine abc goes network share , double clicks on office doc (.xlsx, docx etc....)   need document launch in office.live.com

now, can modify file association , point .xlsx or docx file run custom powershell script.  this powershell script looks this:  

(if excel file clicked on.......)

if (test-path  "c:\program files\microsoft office 15\root\office15\excel.exe"){start-sleep -m 1}
else {cmd.exe /c "c:\program files\internet explorer\iexplore.exe" "https://office.live.com/start/excel.aspx?"}

my issue not open document clicked on.    how done?   file this:    \\server\share\subfolder\subfolder2\expense report january 2017.xlsx

how launch in office.live?


mqh7

hi mqh7,

thanks visiting our forum.

then forum discuss general questions , feedback excel. since issue related powershell script, i'll move thread following dedicated forum powershell:

https://social.technet.microsoft.com/forums/windows/en-us/home?forum=winserverpowershell

the reason why recommend posting appropriately qualified pool of respondents, , other partners read forums regularly can either share knowledge or learn interaction us.

thank understanding.

best regards,
yuki sun


please remember mark replies answers if helped.

if have feedback technet subscriber support, contact tnmff@microsoft.com.



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

some help on Event 540

WMI Repository 4GB limit - Win 2003 Ent Question

Event ID 1302 (error 1307) DFS replication service encountered an error while writing to the debug log file