?
Solved

asp shell command creates empty file

Posted on 2004-03-31
3
Medium Priority
?
190 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 12

Accepted Solution

by:
venkateshwarr earned 920 total points
ID: 10746479

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

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them.

Question has a verified solution.

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

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL several years ago, it seemed like now was a good time to update it for object-oriented PHP.  This article does that, replacing as much as possible the pr…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses

765 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