Announcement

Collapse
No announcement yet.

Can't get Microsoft Paint to work in command line, Windows 11

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Can't get Microsoft Paint to work in command line, Windows 11

    I'm trying to get Microsoft Paint to work in Irfanview v4.60 64 bit,
    in Options\Properties/Settings\Miscellaneous\ Set external editors:
    I found 2 paths online of how the new format looks and neither work, here they are:

    C:\Program Files\WindowsApps\Microsoft.Paint_10.2108.1.0_x64_ _8wekyb3d8bbwe\PaintApp
    &
    %windir%\explorer.exe shell:::{4234d49b-0245-4df3-b780-3893943456e1}

    Has anyone else had luck?
    Thanks!
    -=(RH)=-
    Last edited by Bhikkhu Pesala; 06.12.2022, 11:21 AM.

    #2
    Are you including the mspaint.exe at the end of the the external editor command, or just the path of the folder?

    On my system, I ran Paint and used Task Manager to look at the Properties of the mspaint.exe process.

    For me the full path is:

    "C:\Program Files\WindowsApps\Microsoft.Paint_11.2208.6.0_x64_ _8wekyb3d8bbwe\PaintApp\mspaint.exe"
    Last edited by IfThenElse; 06.12.2022, 01:00 PM.

    Comment


      #3
      It must be a permissions thing, first I tried your path and it didn't work, then I tried to find it in Explorer, I can't even get past Program Files folder, although I can see the WindowsApps folder. I have "show hidden files" checked but it sends me to the security window to get permissions which I get lost right there.
      So I used an Ownership Registry Hack, I have rights in there now, rebooted and it still doesn't work, my path is correct. Even the 3rd field where you can open a 2nd version of Irfanview doesn't work, that path is correct too, IV put it in at install and I have full rights to that folder. At least now I'm getting the little blue circle showing that something is happening, but that's it.
      Thanks for any more ideas!? Reinstall IV?

      Originally posted by IfThenElse View Post
      Are you including the mspaint.exe at the end of the the external editor command, or just the path of the folder?

      On my system, I ran Paint and used Task Manager to look at the Properties of the mspaint.exe process.

      For me the full path is:

      "C:\Program Files\WindowsApps\Microsoft.Paint_11.2208.6.0_x64_ _8wekyb3d8bbwe\PaintApp\mspaint.exe"
      Last edited by rhgrafix; 08.12.2022, 05:42 AM.

      Comment


        #4
        I found it in the shortcut for Paint in C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Accessories (right click the shortcut and click properties)

        open notepad or other text editor and type:

        start "" %windir%\system32\mspaint.exe %1

        save the file somewhere as MSpaint.cmd

        shift/right click on that file in explorer and click "Copy as path"

        open IrfanView Options-Properties/Settings-Miscellaneous and paste into one of the "Set external editors" locations

        click OK

        try that
        Last edited by IrfanUserGuyxyx; 08.12.2022, 07:39 PM.

        Comment


          #5
          Thanks for helping but that didn't work either.


          Originally posted by IrfanUserGuyxyx View Post
          I found it in the shortcut for Paint in C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Accessories (right click the shortcut and click properties)

          open notepad or other text editor and type:

          start "" %windir%\system32\mspaint.exe %1

          save the file somewhere as MSpaint.cmd

          shift/right click on that file in explorer and click "Copy as path"

          open IrfanView Options-Properties/Settings-Miscellaneous and paste into one of the "Set external editors" locations

          click OK

          try that

          Comment


            #6
            Did you try to look in the shortcut for Paint? On my machine it is in: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Accessories

            the program location is in Properties when you right-click on the shortcut. Copy that location to the cmd file.

            start "" <Paint program location> %1

            the IrfanView Properties/Miscellaneous shoul look like this:

            Click image for larger version

Name:	Capture_20221209-142133.jpg
Views:	1377
Size:	86.9 KB
ID:	96571

            Comment


              #7
              I have the correct path, I navigated to it, cut and pasted it in, many times. Windows 11 has a lot of bugs.

              Comment


                #8
                Ah, I didn't notice you were running Win 11..

                Comment


                  #9
                  On my Windows 11 testing machine, I put just "mspaint.exe" without any path in the external editor settings and it wortks for me.
                  My system: IrfanView 4.62 64bit, Windows 10 22H2, Intel Core i5-3570, 16GB RAM, NVidia GTX 1050Ti 4GB

                  Comment


                    #10
                    I can tell that that would probably work if there was not some other problem happening, I put that in and I got the little blue circle [wait...] icon telling me something was happening but it still won't open. If I put xxxx.exe or any bad path, then I don't get any [wait...] icon. It's apparent that is isn't a path thing, something else is wrong with my new HP laptop or Windows 11 in general. Thanks for your reply, I'm sure it will help others.

                    Originally posted by JendaLinda View Post
                    On my Windows 11 testing machine, I put just "mspaint.exe" without any path in the external editor settings and it wortks for me.

                    Comment


                      #11
                      Are you using the latest version, Win11 22H2?
                      What happens, if you try to run mspaint from Command prompt? Either "mspaint" or "start mspaint"
                      My system: IrfanView 4.62 64bit, Windows 10 22H2, Intel Core i5-3570, 16GB RAM, NVidia GTX 1050Ti 4GB

                      Comment


                        #12
                        Yes, I am on 22H2.
                        When I type mspaint from the cmd window it pops right up. I installed https://win7games.com/download/ClassicPaint.zip and that works from the IV external editor line, finally! I don't know why the other paths don't. I have 2 versions of mspaint.exe that came with my new machine, ...11.2201.22.0_x64... & ...11.2208.6.0_x64..., neither work from inside IV, I browsed to each, cut & pasted the paths with the exe at the end, no typos, I did it many times.
                        Also, I remember from years ago about using Shift+1, 2 or 3 to activate the choice of the 3 command lines, but I noticed in the help files it is not easy to find, not even under the page that explains using the external editor lines. Can you point me to where I can find it?
                        Thanks,
                        -=(RH)=-

                        Originally posted by JendaLinda View Post
                        Are you using the latest version, Win11 22H2?
                        What happens, if you try to run mspaint from Command prompt? Either "mspaint" or "start mspaint"

                        Comment


                          #13
                          I know that my answer is a bit late, but in case something like this happens, I suggest double-checking the file paths: Ensure that the file paths you found online are accurate and match the actual location of Microsoft Paint on your system. Sometimes, minor variations in file paths can cause issues.

                          Comment


                            #14
                            I think it's worth exploring alternative image editing software: If all else fails, you can explore other image editing software options that are known to work well with Windows 11. Adobe Photoshop, GIMP, or Paint.NET are popular alternatives that might meet your needs.
                            I totally get the struggle of trying to get Microsoft Paint to work in Irfanview on Windows 11. It can be frustrating when things don't work as expected. Also, you can try looking into Microsoft certifications courses. These courses offer in-depth training on various Microsoft products and technologies, including troubleshooting and optimizing software performance. Gaining some additional knowledge through these courses might help you find a solution to your problem. Keep exploring different resources and forums, as there might be someone who has encountered a similar issue and found a workaround.
                            Last edited by MikeFletcher; 24.07.2023, 02:06 PM.

                            Comment


                              #15
                              I have RIOT, FastStone Capture, and Serif PhotoPlus as my external editors. I rarely use them:
                              1) RIOT is good for compression
                              2) FastStone Capture is good for adding annotations
                              3) PhotoPlus is a full photo editor with clone tools, cutout editor for masks, red-eye correction brushes, etc.

                              Click image for larger version

Name:	External Editors.png
Views:	1147
Size:	8.0 KB
ID:	98037
                              Before you post ... Edit your profile • IrfanView 4.67 • Windows 10 Home 19045.2486

                              Irfan PaintIrfan View HelpIrfanPaint HelpRiot.dllMore SkinsFastStone CaptureUploads

                              Comment

                              Working...
                              X