473,326 Members | 2,680 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

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.Diagnostics.Process = New Process()
p.StartInfo.RedirectStandardOutput = False
p.StartInfo.FileName = "C:\Program Files\Citrix\ICA Client\wfica32.exe"
p.StartInfo.Arguments = "vbciq.ica"
p.StartInfo.UseShellExecute = 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 2312
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**********@attbi.com> wrote in message
news:ey**************@tk2msftngp13.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.Diagnostics.Process = New Process()
p.StartInfo.RedirectStandardOutput = False
p.StartInfo.FileName = "C:\Program Files\Citrix\ICA Client\wfica32.exe"
p.StartInfo.Arguments = "vbciq.ica"
p.StartInfo.UseShellExecute = 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
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...
3
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...
3
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...
6
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...
1
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...
7
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...
8
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....
6
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...
4
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.