Hello All,
I was looking for some help for windows xp ... I need a way to issue a command line function to test to see if image magic is installed and what version it is ...
Something simple that writes the results to a text file ... installed or not installed
thanks in advance
Michael T.
Check to see if Image Magic is installed
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Check to see if Image Magic is installed
I am not a windows user, but this works for me on a Unix (Mac) command line environment:
identify -version > im_version.txt
or
str=`identify -version`
[ "$str" != "" ] && echo "installed" > version.txt || echo "not installed" > version.txt
identify -version > im_version.txt
or
str=`identify -version`
[ "$str" != "" ] && echo "installed" > version.txt || echo "not installed" > version.txt
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Check to see if Image Magic is installed
P.S.
This makes it all one command:
[ "$(identify -version)" != "" ] && echo "installed" > version.txt || echo "not installed" > version.txt
This makes it all one command:
[ "$(identify -version)" != "" ] && echo "installed" > version.txt || echo "not installed" > version.txt