1

I was learning Heroku. I have a program that opens certain apps on requests in python. I have connected my program to Heroku and I wanted that when I or anyone goes to Heroku's link it opens Zoom on their pc.I have used subprocess to obtain this functionality

{subprocess.call('C:\\Users\\User\\AppData\\Roaming\\Zoom\\bin\\Zoom.exe')}.

But when I go to that Heroku link I get an error in logs-

[Errno 2] No such file or directory: 'C:\Users\User\AppData\Roaming\Zoom\bin\Zoom.exe'

Timbus Calin
  • 13,809
  • 5
  • 41
  • 59
  • If there is no other way, please tell me the solution to achieve this – django try try Jan 20 '21 at 08:22
  • All this works fine if using ngrok – django try try Jan 20 '21 at 08:29
  • ok sorry. i will remove it – django try try Jan 20 '21 at 08:44
  • Now any help???Please – django try try Jan 20 '21 at 08:48
  • Though sorry for that 'asap'.it wasn't my attention for being rude – django try try Jan 20 '21 at 09:11
  • Don't worry was just an adviced, you know there are people all around the world so is better to avoid 'strong' language you never know if someone in their colture is sounds bad. By the way i don't know the answer of your question, I never from an online App make automatically open something from the User's device. However I can tell that the error is because C:\Users\User\AppData\Roaming\Zoom\bin\Zoom.exe` is not found, Now this I think is because the heroku app is looking within is envirorment and not looking at your device directory. – Federico Baù Jan 20 '21 at 09:28
  • Thank you so much. And if you get the solution please post it. I think you are right, Heroku is looking in its own environment and not my device directory and maybe that's why it is showing me this error. – django try try Jan 20 '21 at 09:54

1 Answers1

0

Short Answer

Is not possible to do.

Long Answer

I researched it a bit, and the most common and probably 'logical' answer found is that is not possible, mainly for security reasons.

"You can not start/execute an .exe file that resides locally on the users machine or through a site. The user must first download the exe file and then run the executable."

"This assumes the exe is somewhere you know on the user's computer"


Solution

Depending on the Application you are interested, there may be implementation or API that allows you to leverage this and basically they for you go and search for the installed app in the Client's App.

Now, in your case is for Zoom, and it seems that you can achieve this by following Zoom's guide (Official guides are your best friend) HERE.

What it says is just to go at:

https://zoom.us/join

Then the user must provide the Zoom code, then it you press the 'Open Zoom' in the alert box.

So you just need to add a tag like so:

<a href="https://zoom.us/join">Open Zoom!</a>

NOTE: I'am not sure whether this will actually open Zoom in the web or it goes and finds the Zoom app installed in the Client Device, however is for sure a pretty professional way to open the Zoom meeting as it goes through the actual official Zoom screen.


Sources and reference

Federico Baù
  • 6,013
  • 5
  • 30
  • 38