asp shell command creates empty file
Posted on 2004-03-31
I have the following asp page:
to_ps ="c:\antiword\cmd.exe /c antiword -p a4 -m 8859-1.txt " & filename & " > c:\antiword\temp_ps\" & Session.SessionID & ".ps"
Set WshShell = server.createobject("wscript.shell")
It takes a url to a word document and converts it into a postscript file using some free app called antiword. The output filename is set to be the session id to prevent duplicates. For some reason an empty filename.ps is created in c:\antiword\temp_ps\ when run through the asp, but when I use the exact same command from a start->run on the server it correctly produces the postscript file.
Can anyone explain or help me work out why this doesn't work? I am not getting any error messages when the asp is run, so I am at a loss.