OPTION EXPLICIT
On Error Resume Next
dim WshShell
Dim runPath
Dim strPath
Dim oExec
Dim strExtension
DIM intres
Dim strMemNumber
strMemNumber = "0000028_1.JPG"
strPath = lCase(Trim(server.MapPath("ImageConsole.exe")))
strPath = Trim(Replace(strPath,"imageconsole.exe",""))
strExtension = UCase(right(strMemNumber,3))
Set WShShell = Server.CreateObject("WScript.Shell")
'Height = 50
runPath = strPath & "ImageConsole.exe /overwrite /resize /height:50 /type:" & strExtension & " " & strPath & strMemNumber & " " & strPath & "50"
intres = WshShell.Run (RunPath,1,true)
'Height = 170
runPath = strPath & "ImageConsole.exe /overwrite /resize /height:170 /type:" & strExtension & " " & strPath & strMemNumber & " " & strPath & "170"
intres = WshShell.Run (RunPath,1,true)
'Height = 300
runPath = strPath & "ImageConsole.exe /text /align:1 /textleft:0 /texttop:20 /red:247 /green:255 /blue:0 /font:" & chr(34) & "Times New Roman " & chr(34) & " /string:" & chr(34) & "