Re: Compiled batch file won't execute properly

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"Todd Vargo" <tlvargo@xxxxxxxxxxxxxx> wrote in message
news:uOIT1qNQHHA.468@xxxxxxxxxxxxxxxxxxxxxxx
"Mike Lee" <Mike Lee@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:49C9B716-AFF9-4F85-ADF3-EC4DF8E02D04@xxxxxxxxxxxxxxxx
@echo off
for %%i in (%*) do exifiron -R -E -b %%i

The file is designed to rotate jpeg images using the program exifiron.
Anyway, the batch file will process an unlimited number of images at one
time, but when I compile the file into an executable it will only
process a maximum of two images. If I try to feed it more than two
images
at a time it won't process anything. I've tried several different
compilers
and the results are always the same.

I've tried various changes suggested to me but nothing has worked to
eliminate this limitation.

Any help would be much appreciated.

Why compile the batch?

Anyway, have you tried shifting in a loop?

@echo off
:loop
if "%1"=="" goto :end
exifiron -R -E -b %1
shift
goto :loop
:end

Let's try this again. Does this one work? If not, try the VBScript in my
other post.

@echo off
:loop
if (%1)==() goto :end
exifiron -R -E -b %1
shift
goto :loop
:end

--
Todd Vargo
(Post questions to group only. Remove "z" to email personal messages)


.



Relevant Pages

  • Re: Compiled batch file wont execute properly
    ... The file is designed to rotate jpeg images using the program exifiron. ... the batch file will process an unlimited number of images at one ... Why compile the batch? ... have you tried shifting in a loop? ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Re: Startup Script but wait for SQL to start
    ... Main batch file: ... @echo off ... if Errorlevel 1 goto Loop ... And it sucessfully starts up the Indexer. ...
    (microsoft.public.windows.server.general)
  • Re: OT Camera Raw 5.2 and Photoshop CS4, not CS3
    ... used at the loop boundaries. ... will lay out an array in memory. ... But if the the compiler sets the array in memory as 8 blocks of 6 reals, ... Instead it can be quite slow on large images. ...
    (rec.photo.digital.slr-systems)
  • Re: synchronisation between two executable
    ... Why not use a batch file for just putting them in a loop? ... The shell script guarantees the the output filefrom a.out are ... special keyword to ...
    (comp.lang.fortran)
  • Re: Loop Problem (At Least I think)
    ... If there are no images matching the product ... "" Then" statement (the one below the loop, outside of it), is this just ... >> script to finish. ... > 2) Read the database table and acess the dictionary object for the ...
    (microsoft.public.scripting.vbscript)