473,499 Members | 1,658 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Running a VBScript .exe with an .inp answer file

2 New Member
I'm trying to run an executable that calls an .inp file.

This is my current syntax:

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "\\Cetus\express\agents\aclient\altiris-aclient-6.9.430.X86.exe"
"\\Cetus\express\agents\aclient\aclient.inp"

I'm getting the following error:
Line: 28
Char: 6
Error: The system cannot find the file specified.
Code: 80070002
Source: (null)

I know the file exists and the path is correct. Is my syntax wrong? Thanks for the help
Mar 18 '10 #1
0 1145

Sign in to post your reply or Sign up for a free account.

Similar topics

29
5985
by: Christopher Brandsdal | last post by:
If I have a .ASP page that runs JScript code - is it possible to include an ..ASP page that runs VBscript???
20
5943
by: Harag | last post by:
Hi All. I'm stating out doing some web developing. I was wondering which of the server side languages should I concentrate on and learn. I Know CSS, HTML, T-SQL I can look at the client...
3
14021
by: Asif Rahman | last post by:
Hi all! Please improve on the following code to make sure the record gets deleted only when the function returns false. Now I see the msgbox, but the record gets deleted no matter the user...
1
1973
by: dimplewathen | last post by:
Anyone think of a cleaner/nicer/eleganter way of running VBS file in ASP than this example? (Goal is to re-use typical VBS code that uses 'wscrip.echo' without having to re-write everything to...
5
13861
by: Daniel Reber | last post by:
I have a VB application that I am staring to convert. One thing that I need to do is execute VbScript. Can c# do this? Thanks Dan Reber Datamasters, Inc
2
3675
by: Jozsef Bekes | last post by:
Hello Everyone, I am trying to access a C# class from vbscript. All is file, except for the case when I want to use optional parameters or function overloading. As I found out, optional...
4
4517
by: KevinGPO | last post by:
I am currently developing a website in ASP (VBScript) using MS Visual C#.NET IDE. I just create a new "ASP.NET Web Application" and point to my local webserver (IIS) of my website address. Then I...
1
3428
by: Andrew Wan | last post by:
How can VBScript code access JScript code variables in the same ASP page? <SCRIPT LANGAUGE="VBScript"> Dim a a = 10 </SCRIPT> <SCRIPT LANGUAGE="JScript"> Response.Write(a); </SCRIPT>
3
8072
by: andyjgw | last post by:
OK, this is weird. Just installed VS2008 from MSDN RTM build (this machine has never had any beta builds on it). When I open a vbscript file on same machine in VS2005, code-completion and...
2
2106
by: Scripting | last post by:
Hi I am not sure this is right place for this question I am new to vbscripting... Just write this very simple vbscript file Its working perfectly if run from my local PC. If I run this same...
0
7178
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7223
jinu1996
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...
0
5475
agi2029
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,...
1
4919
isladogs
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...
0
4602
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...
0
3103
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...
0
3094
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.