for win2k adv server/iis5.0
trying to run an external program from my asp routine that has multiple
parameters, see following
set shell = server.createob ject("wscript.s hell")
shell.Run """f:\phsData\h tmldoc\htmldoc. exe"" --webpage -f phsnew.pdf
phsnew.htm"
program either doesn't get invoked, or has an error, but since it has no
error log i can't check that,
so not sure why not getting a result
i have run the program successfully from the command line in that directory,
so know it can be run in
the first place and the asp program creates and writes files in the same
directory so i don't think its a
permission problem. asp doesn't complain with any errors
so i'm stumped here and was hoping somebody can give an idea to check or
something 2 7503
First, I would be very suspicious of the use of « F:\ » if it is a mapped
drive. Mapped drives are associated with a logon and will not be visible
from inside the ASP process and should be replaced with an UNC name.
Second, here a sample of the code that I'm using myself for running a
program with multiple parameters:
on error resume next
Application.Loc k
CodeExit = wshShell.run ("""C:\Eval\EvE ngine\RCTEvalTe st.exe""
C:\EVAL\EvEngin e assumption " & NomFichier & " " & NomFichierA, 0, true)
Application.UnL ock
on error goto 0
If (CodeExit <> 0) Then
Response.Write "A nice error message goes here --"
end if
I don't remember the signification of the two parameters 0 and True that I
have put at the end of the call to Run() but maybe they are related to your
problem.
Another possibility would be to try running a .BAT file instead.
--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: http://cerbermail.com/?QugbLEWINF
"bbxrider" <bx******@comca st.net> wrote in message
news:OM******** *****@TK2MSFTNG P15.phx.gbl... for win2k adv server/iis5.0 trying to run an external program from my asp routine that has multiple parameters, see following
set shell = server.createob ject("wscript.s hell") shell.Run """f:\phsData\h tmldoc\htmldoc. exe"" --webpage -f phsnew.pdf phsnew.htm"
program either doesn't get invoked, or has an error, but since it has no error log i can't check that, so not sure why not getting a result i have run the program successfully from the command line in that directory, so know it can be run in the first place and the asp program creates and writes files in the same directory so i don't think its a permission problem. asp doesn't complain with any errors
so i'm stumped here and was hoping somebody can give an idea to check or something
thanks for reply
still not working, 'f' is not mapped, its logical, and i created a virtual
directory under iis, for the program directory, with exec privileges, so it
should have the necessary run permissionss.
i'm getting an error return code of 1 but not sure its telling anything
other than did not run
at this point i'm guessing its a command window problem, where its trying to
open a command line window but its not allowed when running asp files under
iis5.0 the '0' at end of parms is supposed to 'hide the window and activate
another window', i think its the 'another window' maybe the problem,
unfortunately all the other 'window style parameters' also try to do
something with a window, so starting to look like a dead end
"Sylvain Lafontaine" <sylvain aei ca (fill the blanks, no spam please)>
wrote in message news:eA******** ******@TK2MSFTN GP15.phx.gbl... First, I would be very suspicious of the use of « F:\ » if it is a mapped drive. Mapped drives are associated with a logon and will not be visible from inside the ASP process and should be replaced with an UNC name.
Second, here a sample of the code that I'm using myself for running a program with multiple parameters:
on error resume next Application.Loc k
CodeExit = wshShell.run ("""C:\Eval\EvE ngine\RCTEvalTe st.exe"" C:\EVAL\EvEngin e assumption " & NomFichier & " " & NomFichierA, 0, true)
Application.UnL ock on error goto 0
If (CodeExit <> 0) Then Response.Write "A nice error message goes here --" end if
I don't remember the signification of the two parameters 0 and True that I have put at the end of the call to Run() but maybe they are related to
your problem.
Another possibility would be to try running a .BAT file instead.
-- Sylvain Lafontaine, ing. MVP - Technologies Virtual-PC E-mail: http://cerbermail.com/?QugbLEWINF
"bbxrider" <bx******@comca st.net> wrote in message news:OM******** *****@TK2MSFTNG P15.phx.gbl... for win2k adv server/iis5.0 trying to run an external program from my asp routine that has multiple parameters, see following
set shell = server.createob ject("wscript.s hell") shell.Run """f:\phsData\h tmldoc\htmldoc. exe"" --webpage -f phsnew.pdf phsnew.htm"
program either doesn't get invoked, or has an error, but since it has no error log i can't check that, so not sure why not getting a result i have run the program successfully from the command line in that directory, so know it can be run in the first place and the asp program creates and writes files in the same directory so i don't think its a permission problem. asp doesn't complain with any errors
so i'm stumped here and was hoping somebody can give an idea to check or something
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Kyle |
last post by:
To any who chose to provide an answer, or even any suggestions to this
problem, I thank you greatly in advance. +200 pts. for any valid
solutions.
I am currently in the process of converting a website from an existing
web host to our servers. This website used the WScript.Shell command
to execute a series of Java commands that would send an encrypted
email.
I ran these commands directly on the server and they execute properly,
|
by: Patrice FRITSCH |
last post by:
I'm trying to run a batch file from an asp page using WScript.Shell object.
Dim oWSH
set oWSH= Server.CreateObject("WScript.Shell")
call oWSH.Run("cmd.exe /c " & szCmd , 0, true)
szCmd contains the program to execute (fop.bat with several parameters).
But I'm getting the following error message :
|
by: Marcin Zmyslowski |
last post by:
Hello all!
I have installed MSDE on my local computer - Windows 2000 Professional.
I have created a function which runs me a link whose path is placed in
the input field. This function looks like this:
function runCommand(zmienna)
{
if (zmienna==-1)
{
|
by: MacKenzie |
last post by:
The statement in an asp page:
dim objShell
Set objShell = WScript.CreateObject("WScript.Shell")
now gives this error:
VB err= 424,Object required
If I use setobjShell=Server.CreateObject("WScript.Shell"), I get the error
VB err= 5,Invalid procedure call or argument
|
by: Mike John |
last post by:
I am trying to use the shell object to send keys to the
explorer browser to run the send page funcion.
I am receiving the above error only when I put my html
file in the web server folder.However if I am runing the
file local it will work
Any reason, why when the file is in the web server folder
the create object failed to created the shell object.
Systax:
| |
by: Sam Learner |
last post by:
Hi Everyone,
I'd like to create my own Internet Popup windows Stopping program.
Is there any code I could you to monitor when IE or Netscape opens a Windows
from a clicked Link?
how about managed class, is there any?
Please help.
SJ
|
by: Aaron West |
last post by:
Try this script to see what queries are taking over a second.
To get some real output, you need a long-running query. Here's one
(estimated to take over an hour):
PRINT GETDATE()
select count_big(*)
from sys.objects s1, sys.objects s2, sys.objects s3,
sys.objects s4, sys.objects s5
PRINT GETDATE()
|
by: uinoma |
last post by:
I want to open notepad in fullscreen mode, but this script that I created can't do that. .
When I open Windows Manager Task, the program is just run in background, not appeared on web server dekstop.
Is the script wrong or missing something?
Please check out this script and give me your ideas.
<?
$WshShell = new COM("WScript.Shell");
|
by: arunpatil84 |
last post by:
Hi ,
I am working on one ASP.NET application which zips the document files and allow the user to download the files.
For that I am using Izarc command line freeware utility to zip the files.
I am able to create zip the file from if the source files are in local machine as well as if the files to be zipp are in other machines from the network.
My code is as follow as
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |