?
Solved

Calling an exe program via ASP

Posted on 2003-02-25
2
Medium Priority
?
248 Views
Last Modified: 2010-05-18
Hello, the funtion I want to build is to convert a pdf file into html via ASP. Since I have found a open source program (pdftohtml), I want to make use of it.

http://pdftohtml.sourceforge.net

My problem is how I can call that exe program via the ASP. I have searched some information, one method i found is to use wscript.shell. And I tried with the following code:

===========================================
<html>
<body>
<Script language=vbscript runat="server">
    Dim oShell
Set oShell = CreateObject ("WSCript.shell")
oShell.run  "cmd /K CD C:\temp & pdftohtml.exe a.pdf & exit"
Set oShell = Nothing
     
</script>
</body>
</html>
===========================================

it, however, gives a error message of
"The instruction at "0x00446b40" referenced memory at "0x00000010". The memory can not be "read"."

I am testing in win2000.

The second problem is when I run it in another computer of winXp, I got a message of permission error message.

Microsoft VBScript(0x800A0046)

Does anybody know what these problems are? ^^? I am very appericated for your help.

Best Regards,
Vic
0
Comment
Question by:vicshek
[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
2 Comments
 
LVL 28

Accepted Solution

by:
sybe earned 105 total points
ID: 8015486
permission error is because the IUSR_machinename must have rights on the wscript.dll.

0
 

Author Comment

by:vicshek
ID: 8015516
Thx sybe.^^

For testing purpose, I have set the IUSR_machine to admin ^^"

I just found the problem is caused by the permission of writing file/folder into the c:\temp. Then I grant full control to IUSR and IWAM, and it works.

Hope my experience can help ppl with similar problems. And thx again for your help, sybe. ^^

Vic
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

762 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