473,326 Members | 2,588 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.

how to excute exe

Hi
i've one exe ( got through vb.net) and i want to execute this exe file
through my asp.net application and i wrote the following lines of code in
the button click event to run the exe but when i click on button it is not
running that exe i've given

shell("E:/project/windowsapplication1.exe",AppWinStyle.NormalNoFocus ) ( i
wrote this statement in webform)

Can anubody tell me how to solve this problem.

Thanx in advance
Yoshitha

Nov 19 '05 #1
4 1102
ASP.NET application default runs in ASPNET/Network Service account which
does not have rights to execute files.

You should impersonate to another account in order to run it.

"Yoshitha" <gu**********@rediffmail.com> ¼¶¼g©ó¶l¥ó·s»D:uE**************@TK2MSFTNGP12.phx.g bl...
Hi
i've one exe ( got through vb.net) and i want to execute this exe file
through my asp.net application and i wrote the following lines of code in
the button click event to run the exe but when i click on button it is not
running that exe i've given

shell("E:/project/windowsapplication1.exe",AppWinStyle.NormalNoFocus ) ( i
wrote this statement in webform)

Can anubody tell me how to solve this problem.

Thanx in advance
Yoshitha

Nov 19 '05 #2
> shell("E:/project/windowsapplication1.exe",AppWinStyle.NormalNoFocus ) ( i
wrote this statement in webform)


What is this? What are you programming in?

Eliyahu
Nov 19 '05 #3
Most of time, it is a bad idea to run exe from ASP.Net web pages.

If possible, try to convert the app into class library or even com object.
The ASP.Net execution won't "click" for you...

Your sample make me think you are trying to execute the app on the CLIENT
side.
Is it rigth ? If yes you should realy think about other way since IE or
other browsers run in a sandbox environment...

Steve
"Yoshitha" <gu**********@rediffmail.com> a écrit dans le message de news:
uE**************@TK2MSFTNGP12.phx.gbl...
Hi
i've one exe ( got through vb.net) and i want to execute this exe file
through my asp.net application and i wrote the following lines of code in
the button click event to run the exe but when i click on button it is not
running that exe i've given

shell("E:/project/windowsapplication1.exe",AppWinStyle.NormalNoFocus ) ( i
wrote this statement in webform)

Can anubody tell me how to solve this problem.

Thanx in advance
Yoshitha

Nov 19 '05 #4
That looks like VB.NET, but that syntax should only
work in a Windows form.

To run an exe from a web form, you normally use Process.Start

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:eE**************@tk2msftngp13.phx.gbl...
shell("E:/project/windowsapplication1.exe",AppWinStyle.NormalNoFocus ) ( i
wrote this statement in webform)


What is this? What are you programming in?

Eliyahu

Nov 19 '05 #5

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

Similar topics

1
by: news | last post by:
after I clean and rebuild in VS.NET 2003 How can I solve this problem? help me.
2
by: chen jin cai via DotNetMonster.com | last post by:
I want to excute a DOS command backgroup when I click a button in my application,and the DOS window needn't to be open or saw when the application is running?In addition,I uses different DOS command...
1
by: Boki | last post by:
Hi All, I want to excute IE with specified URL, my code: Process p = new Process(); p.StartInfo.FileName = @"C:\Program Files\Internet Explorer\IEXPLORE.EXE...
0
by: AJ2 | last post by:
Hi Guys, I included "for xml auto" in sql statement in "Excute SQL Task" and aimed to dump the output to a flat file. I added "ActiveX Script Task" into my package and with the following lines: ...
5
by: zivon | last post by:
I have a function on one form, and I want when the other form is closed to excute the function on the second form... this is what I'm trying Private Function MainFormIsOpen() ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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: 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...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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.