This works great, thanks a lot!snibgo wrote:That's it. But I suggest you use an environment variable for the path. Eg, have a system-wide variable called IM set to c:\Program Files (x86)\Batch Files\
and then call "%IM%convert".
Search found 3 matches
- 2016-09-14T10:22:05-07:00
- Forum: Users
- Topic: Portable version adding to Windows's Environmental Variables problem
- Replies: 5
- Views: 3317
Re: Portable version adding to Windows's Environmental Variables problem
- 2016-09-14T09:59:58-07:00
- Forum: Users
- Topic: Portable version adding to Windows's Environmental Variables problem
- Replies: 5
- Views: 3317
Re: Portable version adding to Windows's Environmental Variables problem
Thank you very much guys explicit/absolute path solved the problem instead of: for %%a in ("*.PNG") do convert.exe "%%a" -resize 1920x1080 "%%~na.PNG" I have this now and this works well: for %%a in ("*.PNG") do "c:\Program Files (x86)\Batch Files\convert.exe" "%%a" -resize 1920x1080 "%%~na.PNG"
- 2016-09-14T09:32:25-07:00
- Forum: Users
- Topic: Portable version adding to Windows's Environmental Variables problem
- Replies: 5
- Views: 3317
Portable version adding to Windows's Environmental Variables problem
Running a batch resizing an image which is inside the same folder as the ImageMagic files works. BUT I want to be able to use a batch file from outside the folder containing the ImageMagic files. Normally with other CMD programs I do this by adding a path within Windows's Environmental Variables and ...