Solved

asp shell command creates empty file

Posted on 2004-03-31
3
183 Views
Last Modified: 2010-04-06
I have the following asp page:

<%
filename= Request.querystring("url")
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")
WshShell.Run to_ps,1,false
%>

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.



0
Comment
Question by:tariqf
3 Comments
 
LVL 12

Accepted Solution

by:
venkateshwarr earned 230 total points
ID: 10746479

I guess it is because your IUSER does not have write permissions...
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you work with shopping cart / ecommerce relates web sites, you need to pass the certain form post details to the payment gateway process page with required details for the products items you give to order. Also you may need to track the ordered…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question