File: imgDisp.asp
The error is caused by line 378.
The line curently reads:
rotatePath = localPath & "\jpegtran.exe" & " -copy all -
rotate " & rotAng & " " & localPath & "\" & imgToDisp
& " " & localPath & "\" & imgRotPath
Needs to be changed to:
rotatePath = """" & localPath & "\jpegtran.exe""" & " -
copy all -rotate " & rotAng & " """ & localPath & "\" &
Replace(imgToDisp,"/","\") & """ """ & localPath & "\" &
Replace(imgRotPath,"/","\") & """"
There are two problems with the line.
1. imgToDisp and imgRotPath contains foward slashs
insead of back slashes.
2. If there are spaces in the path or filename, then the
parameters are not passed correctly.