Resizing images with batch script using Imagemagick : Trying to write a batch file to resize all the images in a directory to 640 Pixel wide, placing the resized images into a sub-directory called "web-img" and the original pictures should be unchanged.

This was the code I wrote, but it is not working.

rem shu chetluru
@echo off

if not exist "C:\Users\Asus\Desktop\proj.uti.1\websize\web-img\nul" md "C:\Users\Asus\Desktop\proj.uti.1\websize\web-img"

mogrify -path "C:\Desktop\proj\websize*.jpg"  -resize 640@ "C:\Desktop\proj\websize\web-img"



Can someone please help me to complete and make the code work??



Thank you so much in advance.


 