473,670 Members | 2,538 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using Process class to run client executable?

Hi, I'm trying to open an executable file from intranet asp.net page in
..Net 1.1. The following code fires but hangs after processing for about
45 seconds (no error message, just hangs).

Dim p As System.Diagnost ics.Process = New Process()
p.StartInfo.Red irectStandardOu tput = False
p.StartInfo.Fil eName = "C:\Program Files\Citrix\IC A Client\wfica32. exe"
p.StartInfo.Arg uments = "vbciq.ica"
p.StartInfo.Use ShellExecute = False 'also tried True
p.Start()
p.WaitForExit()
p.Dispose()

New to the Process class, not even sure if this is how I should go about
this. The .ica (Citrix) file should open a DOS command window...don't
know where to go from here.

Any help appreciated.

Kathy

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #1
3 2317
Your strategy will not work to run an executable on the client.
The code you listed attempts to run code on the server.
To run code on the client you'll need to use client side code (such as
VBScript or Javascript) or you'll need to deploy a .NET code assembly to the
client.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com


"Kathy Burke" <ka**********@a ttbi.com> wrote in message
news:ey******** ******@tk2msftn gp13.phx.gbl...
Hi, I'm trying to open an executable file from intranet asp.net page in
Net 1.1. The following code fires but hangs after processing for about
45 seconds (no error message, just hangs).

Dim p As System.Diagnost ics.Process = New Process()
p.StartInfo.Red irectStandardOu tput = False
p.StartInfo.Fil eName = "C:\Program Files\Citrix\IC A Client\wfica32. exe"
p.StartInfo.Arg uments = "vbciq.ica"
p.StartInfo.Use ShellExecute = False 'also tried True
p.Start()
p.WaitForExit()
p.Dispose()

New to the Process class, not even sure if this is how I should go about
this. The .ica (Citrix) file should open a DOS command window...don't
know where to go from here.

Any help appreciated.

Kathy

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #2
Thanks, Steve.

Could you PLEASE point me to a javascript example of opening an
application from with asp.net but in its own command window? I've tried
window.open with the file as the url, but no luck (that would be a
browser window of course so it wouldn't work.

???

Thanks again.

Kathy

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3
Thanks, Steve.

Could you PLEASE point me to a javascript example of opening an
application from with asp.net but in its own command window? I've tried
window.open with the file as the url, but no luck (that would be a
browser window of course so it wouldn't work.

???

Thanks again.

Kathy

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

121
10032
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode support IDEs are DreamWeaver 8 and Zend PHP Studio. DreamWeaver provides full support for Unicode. However, DreamWeaver is a web editor rather than a PHP IDE. It only supports basic IntelliSense (or code completion) and doesn't have anything...
3
5284
by: dave | last post by:
Hi, Does anyone know how I could make an .exe launched server side from an aspx file run faster? When I use javascript client side it of couse is much faster. Here's my code This code does work but it's extremely slow. What am I missing? Process Updater = new Process();
3
1757
by: Vicky_r | last post by:
hi.. I am using Process class to run a .bat file. The .bat file contains the code to run the Session StateServer. First I have written a command in a text file then I convert it to bat and with the help of Process I run the bat file. Now when I use this line "cd C:\WINNT\Microsoft.NET\Framework\v2.0.50727 net start aspnet_state" its
6
3143
by: Vivek | last post by:
Hi, I got the method of invoking a c executable code from the html.I tested the invocation by writing a simple C program that accepts two integers from the html page, multiplies them and returns the result to the html page. I have coded a program that uses sockets to communicate with the other computer. The OS used is Red Hat linux. When i call the executable file of this program, the socket() function returns with an error. i.e the...
1
1845
by: Wang E | last post by:
I've been working on an online judge(for ACM/ICPC) using C#.Programmes submitted by users can now be compiled,and it's the problem to judge.I use the Process class in C#,and my thread is as follows:start a process using this class with parameters such as input file,output file,etc,and when the programme is running,i get its running information such as running time,used memory,etc.I code as follows: Process p = new Process();...
7
10318
by: Peter Bradley | last post by:
OK. A bit behind the times, I know; but we're just moving over to .NET 2.0. How on earth do you manage configuration settings in a class library in .NET 2.0? In version 1.1, we used a handy class called AssemblySettings that someone (I forget his name) had written. When the class library was finished, you deployed it to the GAC and put the configuration files in the GAC with the class library assembly. This no longer works. In fact...
8
3219
by: Lonifasiko | last post by:
Hi, Using Process class I asynchronously launch an executable (black box executable) file from my Windows application. I mean asynchronously because I've got an EventHandler for "Exited" event. Therefore, when process finishes, "Exited" event is raised. This executable writes a long file for over 1-5 minutes, and I, from my application must read that file while is being generated.
6
2144
by: greek_bill | last post by:
Hi, I'm interested in developing an application that needs to run on more than one operating system. Naturally, a lot of the code will be shared between the various OSs, with OS specific functionality being kept separate. I've been going over the various approaches I could follow in order to implement the OS-specific functionality. The requirements I have are as follows :
4
5134
by: Kerem Gümrükcü | last post by:
Hi, i wonder that the Process.Start(...) needs full path to the executable to start it, even the executable is listed in the PATH Variable and can be launched from any console on my system. Is it possible to do the same from Process.Start(...)? How can i set the Process Executon Environment for the Process, so that the call to Start(...) will resolve the path to the Exe from the PATH Env. and run it. Is this possible...? Maybe i miss...
0
8466
marktang
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...
0
8384
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8591
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8659
tracyyun
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...
0
7412
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, 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...
1
6212
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 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...
0
5683
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();...
0
4388
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2037
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.