Solved

asp shell command creates empty file

Posted on 2004-03-31
3
182 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

832 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