How to start Microsoft Photos from command line?

Page 2 of 2 FirstFirst 12

  1. Posts : 30
    Windows 10
       #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 Computer


  2. Posts : 2
    Win 10
       #12

    How to start Microsoft Photos from command line?


    Any luck opening photos through command line?


    MIRKOSOFT said:
    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 Computer


  3. Posts : 69
    Windows 10 Pro x64
    Thread Starter
       #13

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

    Miro
      My Computer


  4. Posts : 2
    Win 10
       #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:
    Any luck opening photos through command line?
      My Computer


  5. Posts : 7
    Windows 10 Desktop
       #15

    jshirahatti said:
    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 Computer


  6. Posts : 42,982
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #16

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


  7. Posts : 7
    Windows 10 Desktop
       #17

    dalchina said:
    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 Computer


  8. Posts : 1
    Windows 10
       #18

    with the start command :)


    Hi,

    This thread is quite old, but I'm just discovering the"start" command:

    • start ms-photos: to launch the application
    • start <myphoto.jpg>: to display the file with the default application


    it works also for any registered type of files (like open in *nix) !
      My Computer


 

  Related Discussions
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 12:20.
Find Us




Windows 10 Forums