On Fri, 25 Feb 2005 09:21:43 +1100, David Nelson wrote:

> for %%p in (*.pef) do halfsize %%p
> move *.jpg f:\PHOTOS

Here's a slightly more flexible version:

-------- CUT HERE --------
@ECHO OFF
ECHO .
IF "%1" == "" GOTO NO_PARMS
IF "%2" == "" GOTO NO_TARGET
FOR %%p IN (%1) DO halfsize %%p
MOVE %1 %2
GOTO THE_END
:NO_TARGET
ECHO You need to provide an output directory path!
GOTO USAGE
:NO_PARMS
ECHO You need to provide a file name pattern and an output directory
path!
:USAGE
ECHO .
ECHO Usage: HalfAll [file-pattern] [ouput-directory]
ECHO        The file-pattern is a filespec that contains wildcards, like
ECHO        *.GIF to run HalfSize on all of the GIF files in the current
ECHO        directory.  The output-directory identifies the location the
ECHO        processed files will end up in.
:THE_END
-------- CUT HERE --------



TTYL, DougF KG4LMZ


Reply via email to