Announcement

Collapse
No announcement yet.

Command prompt launch of IrfanView

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

    Command prompt launch of IrfanView

    Running Windows XP pro.

    I want to use the command prompt window to launch Irfanview, open the Thumbnails window, and have all the images in the specified folder displayed as Thumbnails.

    The contents of my imaginary command string might look like:

    C:\> "\Program files\Irfanview\i_view32.exe /T c:\temp\*.*" .

    where /T opens the Thumbnails window, and displays all the images in the folder called c:\temp

    Anybody know how to do this?

    Thanks, John

    #2
    Take a look at i_options.txt in the IrfanView program folder.
    Before you post ... Edit your profile • IrfanView 4.67 • Windows 10 Home 19045.2486

    Irfan PaintIrfan View HelpIrfanPaint HelpMore SkinsFastStone CaptureUploads

    Comment


      #3
      Originally posted by Bhikkhu Pesala View Post
      Take a look at i_options.txt in the IrfanView program folder.
      I think that will do the job. Thanks.

      John

      Comment


        #4
        "C:\Program Files\IrfanView\i_view32.exe" c:\windows\temp /thumbs

        Comment


          #5
          I'm executing IrfanView through another application* and \Program files\ (with the 2-word folder name) is causing problems. Using your command string in a batch file via the Command Prompt window is already working fine.

          I won't have time to work on this until Monday, but I'll either re-install IrfanView in a one-word folder, or use the old DOS trick of \Progra~1\.

          * the launching application is SmartWare, which has a function named PROCESS_CREATE("C:\Program files\Irfanview\....) -- it's balking at the 2-word folder name.

          Comment


            #6
            As dvipmail pointed out, you need quotes around each path that contains blanks. Getting quotes into strings usually requires a programming language specific idiom. For example, in Visual Basic related languages (VB.NET, VBA, VBScript, ?) you double the quotes:
            """C:\Program Files\IrfanView\i_view32.exe"" ""c:\My Documents\My Pictures"" /thumbs"

            In C related languages (Java, Javascript, C#, ?) you "escape" the quote (and the backslash):
            "\"C:\\Program Files\\IrfanView\\i_view32.exe\" \"c:\\My Documents\\My Pictures\" /thumbs"

            Comment


              #7
              I'm aware of the quotation marks issue. In the language I use (SmartWare 4.0), a quotation mark is created by the string chr(34). Unfortunately, that doesn't solve the problem in SmartWare. More experienced folks than I think there is something in SmartWare's PROCESS_CREATE() function that simply can't handle 2-word folder names no matter what (not even with double quotes).

              Thanks.

              John
              Last edited by John Cutler; 08.04.2008, 07:30 PM.

              Comment

              Working...
              X