I have been issuing commands at the Windows command line, such as
Code: Select all
convert C:\Pictures\19732685.jpg -format %c -colors 10 -depth 8 histogram:info:- >> C:\Pictures\analysis.txt
So far, I have:
Code: Select all
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set img = CreateObject("ImageMagickObject.MagickImage.1")
Set WshShell = WScript.CreateObject("WScript.Shell")
img.Convert "C:\Pictures\19732685.jpg","-format","%c","-colors","5","-depth", "8", "histogram", "C:\Pictures\analysis.txt"
How can I get my original command prompt command to work in VBScript?
Is there any documentation of generally converting command line success stories into VBscript?