Announcement

Collapse
No announcement yet.

Batch-Scan to different paths

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

    Batch-Scan to different paths

    Hi There,

    I've try to write a batch for scan pictures from a small camera.
    The camera is a USB-Videodevice with footswitch

    I write this:

    set /p %number%="Please input Number:"

    c:\programme\irfanview\i_view32.exe /batchscan=img,1,1,2,1,c:\%number%,jpg,0) /scanhidden

    Okay, it doesn't work because irfanview cann't insert the %number% into the batch-string. After scanning all Files are in c:\ :-(((

    Any idea?

    Thanks a lot


    IrfanView 4.23
    IrfanView 4.22 plugins
    WinXP pro SP3

    #2
    an idea is to use two files :-)

    input.bat

    @echo off
    set /p patnumber="Please input Number:"
    echo c:\programme\irfanview\i_view32.exe /batchscan=iimg,1,1,2,1,c:\%patnumber%,jpg,0) /scanhidden > scan.bat
    call scan.bat

    the file created by input.bat looks so:
    c:\programme\irfanview\i_view32.exe /batchscan=iimg,1,1,2,1,c:\1212,jpg,0) /scanhidden

    not nice but it works.

    Thanks for listening to me :-)

    Hepper35

    Comment


      #3
      It didn't work because the variable wasn't properly defined. You need to eliminate the % signs when using set.

      Use:
      Code:
      set /p number="Please input Number:"
      
      c:\programme\irfanview\i_view32.exe /batchscan=iimg,1,1,2,1,c:\%number%,jpg,0) /scanhidden
      I sure wish the filename wasn't truncated when using the command line though!
      Last edited by Skippybox; 16.01.2009, 08:50 PM.

      Comment

      Working...
      X