I can create the WScript object - I am not having a permissions error. The problem is I'm trying to call a BAT file and what was working on WinXP no longer works on Win Server 2003.
I'm running IIS with anonymous access but am using a specific local acct (not IUSR). This account has full access to the BAT, EXE and dir where it's located.
Other WScript shell scripts are working, just not the call to this BAT. The BAT does work from command line, so I assume this is an acct issue but I can't figure out where. Any thoughts?
Here's the code:
Here's the BAT code:Code:Set WshShell = CreateObject("WScript.Shell") Set WshExec = WshShell.Exec("C:\pdf2text.bat " & filename) 'where filename is the name of a PDF file in the FS pdftext = WshExec.StdOut.ReadAll 'pdftext should now hold the text content inside the PDF filename
Thanks in advance for any advice!Code:CD C:\Inetpub\wwwroot\HCForum\uploadfiles pdftotext.exe -nopgbrk -eol dos %1 - 'where %1 is the filename arg passed in, and dash (-) causes the result to be sent to StdOut




Reply With Quote