Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This is how to organise product photos (Windows CMD method)

Best you watch this video first on how it is done (smile)

First we have a batch file with the bellow, we called ours rename.bat :

Code Block
ECHO off
FOR /F "tokens=* USEBACKQ" %%F IN (`zbarimg --raw -D -q %1`) DO (
 SET fullbarcode=%%F
)
ECHO Full barcode: %fullbarcode%
ECHO ON
rename %1 %fullbarcode%.jpg

View file
namerename.bat

Then we use this command to trigger the action, this action can be copied and pasted in the CMD or powershell. Make sure you are in the bin folder of zBar application.

View file
namezbar-0.10-setup.exe

Code Block
for /f “tokens=*” %a in ('dir /b *.jpg') do rename.bat %a

The current limitation, means that the photos must all be in the bit folder.

The application you need is below. As well as the batch file used.

View file
namerename.bat

View file
namezbar-0.10-setup.exe