I am trying to write a simple script to add borders to images using Magick with a bat file. However, I immediately ran into a problem because Magick does not run from the script. I am using Windows 11.
So far, all I put in is this:
:pathcheck
set /p path=What is the path you want to use?
if not exist "%path%" goto pathcheck
cd %path%
magick -version
pause
But when I give it the path, it returns: 'magick' is not recognized as an internal or external command, operable program or batch file.
If I cd
into the path by hand using cmd
and run magick -version
it works without problem. I tried adding the Image Magick folder to environment variables by hand but it made no difference. Also tried running as administrator.
1