How to call up windows 10 share dialog box from powershell or cmd How to call up windows 10 share dialog box from powershell or cmd windows windows

How to call up windows 10 share dialog box from powershell or cmd


Thanks to @Simon Mourier for pointing me to the answer.The solution can be found on https://github.com/daibatzu/electron-sharing

Using visual studio you can build an exe file, I have included instructions in the readme.txt

The generated exe is WindowsFormsApp2.exeYou can then share files by using:

WindowsFormsApp2.exe "C:\Projects\Javascript\photos\celeste.png" "C:\Projects\Javascript\photos\Silvercoins.jpg"

You can test this by opening a cmd prompt, navigating to the folder containing WindowsFormsApp2.exe and passing filenames as parameters.

Clicking outside the share dialog will close WindowsFormsApp2.exeYou will need to use visual studio to change the icon for this app unfortunately

I have included a release just in case you do not know visual studio or C#. You will need 7-zip (free download) to unzip it.

Once again, thanks to Simon.This took way longer than I imagined.

EDIT

problems with github so zip file is here: https://drive.google.com/file/d/1jyBqO6jmGo5dSxw32LXa5lej1J3ElD34/view?usp=sharing