473,396 Members | 1,871 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,396 software developers and data experts.

WinExec in C# ?

Hi can anyone tell me how to call an external application from withing C# code?
I can't find WinExec anywhere? Do i have to go and look for the shell functionality for launching applicatoins from within the c# app? ANd if so where is it?
Nov 16 '05 #1
2 8788
"CSharpX" <an*******@discussions.microsoft.com> wrote in message
news:E7**********************************@microsof t.com...
Hi can anyone tell me how to call an external application from withing C# code? I can't find WinExec anywhere? Do i have to go and look for the shell

functionality for launching applicatoins from within the c# app? ANd if so
where is it?

System.Diagnostics.Process.Start

Erik
Nov 16 '05 #2
Ok thanks, that is what i was looking for

Nov 16 '05 #3

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

Similar topics

3
by: Camel | last post by:
Hi All, I am doing my Visual C++ homework. My program requires to build a GUI and ping a host, then display the result. I called winexec("ping 192.168.0.1"), however it executed in DOS window....
3
by: Chris LaJoie | last post by:
I'm looking for the framework equivilent of either the ShellExec or WinExec API. Preferably ShellExec because I can use it to launch the default browser as well as launch executables. thanks.
1
by: Daniel Bass | last post by:
in VC++ you could go WinExec("C:\\myExe.exe", "open"); how do i do this in C#? can't find anything in MSDN... Thanks. =o) Dan.
1
by: Itzamna | last post by:
Hi its been a few years but i am sure i have done this before. i can easly call the file using strcpy(Path,"Start.bat"); WinExec(Path,SW_SHOWNORMAL); but if the path line becomes more...
2
by: Luc | last post by:
Hello, I've got following problem: I have two applications, the first one is running and reads the second one into memory. And I need to run the second application directly from the memory...
21
by: one2001boy | last post by:
PostMessage() function returns ERROR_NOT_ENOUGH_QUOTA after running in a loop for 700 times, but the disk space and memory are still big enough. any suggestion to resolve this problem? thanks.
25
by: dennijr | last post by:
ok, shell always used to be easy for me, now its starting to get annoying cause i dont know wats wrong heres the simplist code possible: Private Sub IExplorer_Click() a = Shell("C:\Program...
4
by: Stefano | last post by:
I have a couple of lines of a program that are making me mad. My intention is to run Internet Explorer in background. #include <windows.h> #include <stdio.h> int main () { char* strFunct =...
2
by: Weegee | last post by:
Hello, Just wondering if anyone knew how to run a DOS cmd such as "ping", and get the output to a CString variable to process using MFC? I'm currently using something like: WinExec("cmd /c...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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
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
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...

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.