Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Professional
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 18th, 2006, 09:25 PM
Registered User
Join Date: Jun 2006
Location: Bangalore, Karnataka, India.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Executing a java program from an ASP page

Hi all :),

THis is my first posting in this forum and I am sure I can get some help here which I urgently require.

I am working on a ASP page which conducts a survey. I am saving the feedback as a Text file,which I then need to attach to a Trouble Ticket(created with a Ticketing tool). I have a java code that attaches the text file to this ticket.

Now, the Ticketing tool is placed in one server while my asp page is hosted in another server. I have placed the java code in the same server as the IIS. The problem is, when I run the java program by loggin on the server, it executes perfectly but when I call the same program from my asp page using the following code, it dosen't execute.

cmdString = "cmd /c D: & java MyJavaProg"
set filesys = Server.CreateObject("WScript.Shell")
temp = filesys.run(cmdString,0,True)
set filesys = nothing

If it can be of any help, when I execute the program directly in the server, the process gets created under my login but when it runs from the page, it gets created under a username, Network Service.
I have provided Full access right to that username for all the related files and folders but it didn't help :(.

Please help me.

Thanks in advance,

Reply With Quote
  #2 (permalink)  
Old July 2nd, 2006, 10:58 AM
ctt ctt is offline
Registered User
Join Date: Jul 2006
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to ctt

Do you get some type of error, or does it just not execute?
I've used the cmd to access ftp via this method and it did work, - try piping the output to the temp file so you can see if it is asking for a command that you are not giving it.

- Michael Levkoff -
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
executing a jsp program on tomcat server sushant2002 JSP Basics 2 August 28th, 2007 10:54 PM
Executing Third Party Program from .NET peter2004 ASP.NET 2.0 Professional 0 February 28th, 2007 08:47 PM
Executing Oracle Scripts from ASP Page acpt Classic ASP Basics 0 May 3rd, 2005 08:33 AM
Executing DTS package from ASP page via SP savoym Classic ASP Basics 0 April 28th, 2005 07:02 AM
Executing an external program. saint VB.NET 2002/2003 Basics 3 July 22nd, 2003 08:30 PM

All times are GMT -4. The time now is 11:23 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.