Windows 10: How to start Microsoft Photos from command line?

Page 2 of 2 FirstFirst 12
  1.    16 Jun 2016 #11

    Current tutorial – Photos – Albums – Windows 10

    I’ve found a couple of videos:.
    https://www.youtube.com/watch?v=Jkqa4EmYcQY
    https://www.youtube.com/watch?v=xYV0I58krN8
    but in both cases, the “Albums” feature was not yet working when they were created.
    Can anyone give me a link to a video tutorial that was created after the Albums feature was fixed…………working now?
      My ComputerSystem Spec

  2.    24 Oct 2016 #12

    How to start Microsoft Photos from command line?


    Any luck opening photos through command line?


    MIRKOSOFT said: View Post
    Yes, registry manipulating script is maybe only one way, I tried written in post before your and nothing helped.
    Sure is that it must to be possible 'cause if it works when are file associations default, then it's not impossible!

    Miro
      My ComputerSystem Spec


  3. Posts : 16
    Windows 10 Pro x64
    Thread Starter
       24 Oct 2016 #13

    I must to use Process Monitor or Window Inspector. Currently missing time.

    Miro
      My ComputerSystem Spec

  4.    24 Oct 2016 #14

    How to start Microsoft Photos from command line?


    Thank you so much for the reply, Do u have any example of how to do it?

    jshirahatti said: View Post
    Any luck opening photos through command line?
      My ComputerSystem Spec


  5. Posts : 7
    Windows 10 Desktop
       14 Dec 2016 #15

    jshirahatti said: View Post
    Thank you so much for the reply, Do u have any example of how to do it?
    Hi All,
    Could you please help:
    I am able to open Windows 10 Photos using below code, I do not know how to open a particular image (using image name)

    private static void OpenSamplePhoto()
    {
    string samplePicturesFolder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "Sample_Pictures");
    string picturePath = Path.Combine(samplePicturesFolder, "sample1.JPG");

    ProcessStartInfo info = new ProcessStartInfo();
    info.FileName = @"ms-photos://";
    info.UseShellExecute = true;
    info.CreateNoWindow = true;
    info.Verb = string.Empty;

    Process.Start(info);
    }
      My ComputerSystem Spec

  6.    14 Dec 2016 #16

    Hi, a basic clue- universal apps as you know do not use exe files, nor do they take parameters.
      My ComputerSystem Spec


  7. Posts : 7
    Windows 10 Desktop
       14 Dec 2016 #17

    dalchina said: View Post
    Hi, a basic clue- universal apps as you know do not use exe files, nor do they take parameters.
    Hello,
    Could you please help:
    I am able to open a particular image with below code, however I am NOT able to navigate to Next or Previous image using buttons from that particular image ("sample1.JPG"),

    I request your help: I am sure, why the Next and Previous buttons are disabled.

    private static void OpenSamplePhoto()
    {
    string samplePicturesFolder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "Sample_Pictures");

    string picturePath = Path.Combine(samplePicturesFolder, "sample1.JPG");

    ProcessStartInfo info = new ProcessStartInfo();
    info.WorkingDirectory = samplePicturesFolder;
    info.FileName = @Path.Combine("ms-photos://", picturePath);
    info.UseShellExecute = true;
    info.CreateNoWindow = true;
    info.Verb = string.Empty;

    Process.Start(info);
    }
    Last edited by Obuliraj; 14 Dec 2016 at 19:08. Reason: Proper formatting for sample code
      My ComputerSystem Spec


 
Page 2 of 2 FirstFirst 12

Related Threads
If you are not familiar with package managers I recommend you read first the short Chocolatey package manager tutorial at our sister site Windows Eight Forums as an introduction to this tutorial: Chocolatey - Install Apps from Command Line. Although...
This is driving me crazy. I have PhotoShop which runs fine under win10 bty BUT I really like the little Photos app for quick editing however. It doesn't work all the time. The app itself never fails to launch but with about half of the pictures...
Green Line Under Taskbar in Customization
I know this has to do with virtual desktops... but it's super obnoxious. Is there a way to get rid of it? I don't really need or want multiple desktops anyway, and it's irritating that it shows a little green bar under every program even when I...
Want to use an image as a link to an image but nothing shows. Paths are correct. There's not even that broken image icon to show that it can't find the images... it just shows nothing. And I know this works cos I did it before but somethings...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 02:41.
Find Us