Skip to main content
1-Visitor
January 17, 2020
Solved

How to open external files like from sharepoint or other drive using OS Script

  • January 17, 2020
  • 1 reply
  • 3575 views

I am trying to open external files like from sharepoint or other drive using OS Script. I could do open file from my local drive but not from sharepoint or other drives etc. Anyone resolved this

Best answer by Eike_Hauptmann

I'm not sure that you mean a Macro / Mapkey when you say OS SCRIPT.

 

I use a system call for these behavior and it also work over Network boundarys.

 

@SYSTEMstart "title" "Y:\test.pdf"

1 reply

15-Moonstone
January 17, 2020

What would you open and in which language ... please be more specific.

 

There are many possibilitys how to open different files. You can use a system() call to archive it. But be prepared that ?-Operators in URLs didn't work. If you want to archive them you need an extra handle for URLs and so on. So please be more specific on what you want to open in which program and where are your problems.

 

Br,

Eike

1-Visitor
January 17, 2020

Hello Eike,

 

Thank you very much for the reply. From the attached drive.jpg, if I try to open any file (like excel, word or image etc) from the local drive (like C:,D:,G:,H etc) through OS Script mapkey, then it opens. But  if I try to open it from network location (like B:, or Q:), then mapkey doesn't work. Same is the case if I try to open from share-point or office 365, the mapkey doesn't work.

Hope you understand my question.

Regards,

Sreenivas

15-Moonstone
January 17, 2020

I'm not sure that you mean a Macro / Mapkey when you say OS SCRIPT.

 

I use a system call for these behavior and it also work over Network boundarys.

 

@SYSTEMstart "title" "Y:\test.pdf"