Solved

asp shell command creates empty file

Posted on 2004-03-31
3
180 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
Comment Utility

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

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Perl 101 11 68
two submit buttons one form 15 65
Problem to file 3 47
Problem to page 4 16
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

763 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now