/
Auto Rename photo Barcode with SKU using zBar

Auto Rename photo Barcode with SKU using zBar

This is how to organise product photos (Windows CMD method). Make sure you run all commands in the ZBar Command Prompt:

Best you watch this video first on how it is done

Make you sure you have installed zBar, but also, we installed this into Desktop to avoid running CMD in admin mode.

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

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

Then we use this command to trigger the action, this action can be copied and pasted in the ZBar Command Prompt. This Command will not work outside of his CMD, like in PowerShell windows default CDM. Make sure you are in the bin folder of zBar application.

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, including the IOS app for the Barcode capture. As well as the batch file used.

https://apps.apple.com/es/app/scan-to-spreadsheet/id478631675?l=en

 

©2020 ConceptSauce ltd / For further help please contact us directly on Team@conceptsauce.io