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

Discus and support How to start Microsoft Photos from command line? in Windows 10 Software and Apps to solve the problem; Thank you so much for the reply, Do u have any example of how to do it? Any luck opening photos through command line? Discussion in 'Windows 10 Software and Apps' started by MIRKOSOFT, Aug 15, 2015.

  1. 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, Oct 24, 2016
    #16
  2. Obuliraj Win User

    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);
    }
     
    Obuliraj, Dec 13, 2016
    #17
  3. dalchina New Member
    Hi, a basic clue- universal apps as you know do not use exe files, nor do they take parameters.
     
    dalchina, Dec 13, 2016
    #18
  4. Obuliraj Win User

    How to start Microsoft Photos from command line?

    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);
    }
     
    Obuliraj, Dec 14, 2016
    #19
  5. GillesP Win User
    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) !
     
    GillesP, Apr 5, 2018
    #20
Thema:

How to start Microsoft Photos from command line?

Loading...
  1. How to start Microsoft Photos from command line? - Similar Threads - start Microsoft Photos

  2. Changing Timezone from command line

    in Windows 10 Tutorials
    Changing Timezone from command line: It would be the case that you would need to change the time zone on the server but from the Time & Date option, it would be greyed out due to policy. There is a workaround for changing the timezone using the Command Prompt as Administrator. Type tzutil /g to get the current...
  3. Unable to hibernate from the command line

    in Windows 10 Software and Apps
    Unable to hibernate from the command line: I used to be able hibernate Windows 10 from the command line using a shortcut but for some reason it’s stopped working. The command has always been "shutdown.exe /h /t 0" but the shortcut no longer works. When I copy and paste the same line into a Command Prompt window it...
  4. Command line commands

    in Windows 10 Customization
    Command line commands: I would like to create a shortcut on the desktop using a command in a .bat file. I would like to specify what icon file to use, what program to execute, and the parameters to pass to the program. I have researched MKLINK but I don't think it will do the job. Any...
  5. Command Line

    in Windows 10 Network and Sharing
    Command Line: I am attempting to copy and entire directory from one HDD to another, by keep getting an error of "Invalid umber of parameters." The file path to the Directory is as follows: G:\Users\USERNAME\Desktop\OLD OS FOLDER The destination folder is C:\OLDOS Can someone PLEASE...
  6. Join a Meeting by starting Teams from command line

    in Windows 10 Network and Sharing
    Join a Meeting by starting Teams from command line: I posted the question below in the MS Teams category, but a Microsoft agent suggested I pose the question here. ------------- I have many online meetings every week, mainly on zoom and teams. I get the invitation 5-10 days ahead and used to forget about the meeting until...
  7. How to turn on battery saver from command line?

    in Windows 10 Support
    How to turn on battery saver from command line?: Hi All anybody has a clue how to turn on battery saver in Windows 10 via command line? Thanks. 155088
  8. Running a Command Line Command From a File Automatically

    in Windows 10 Installation and Upgrade
    Running a Command Line Command From a File Automatically: I have the following commands which need to be run in the command line: sc.exe config wuauserv start= disabled sc.exe stop wuauserv I want to create a file which, when launched, opens the command line, sends the above commands to the command line, and then closes the...
  9. How to Disable Driver Verifier from Command Line

    in Windows 10 BSOD Crashes and Debugging
    How to Disable Driver Verifier from Command Line: So I was using driver verifier to try to detect which drivers were causing my computer to crash by activating the verifier, getting it to crash (usually on start up) and restoring to a system restore point I had set up previously using a flash drive with windows on it and...
  10. Can restore of Win 7 be started from command line ?

    in Windows 10 Installation and Upgrade
    Can restore of Win 7 be started from command line ?: For some unknown reason I cannot any more navigate to Update panel from "Einstellungen" - it is blocked. I have to cancel the "Einstellungen" window by the task manager ! So in this moment I cant go forward nor backward any more: cant activate Win 10 neither start the...

Users found this page by searching for:

  1. microsoft photos from command line