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

ShellExecuteEx

is there a Equivelent of ShellExecuteEx
in c#

thanks
Dave
Feb 3 '07 #1
3 3897
DaveP wrote:
is there a Equivelent of ShellExecuteEx
in c#
Process Start maybe.

Arne
Feb 3 '07 #2
may be you want this.

Process myProcess = new Process();
myProcess.StartInfo.FileName = "cmd.exe";
myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
myProcess.StartInfo.Arguments = "/c" + " dir >c:\test.txt";
myProcess.Start();

this will execute the dir command in console [ like in console: C:\>
dir/w >test.txt ]

Salman
Feb 3 '07 #3
On Feb 3, 2:58 am, "DaveP" <dvs_...@sbcglobal.netwrote:
is there a Equivelent of ShellExecuteEx
in c#

thanks
Dave
Just use System.Diagnostics.Process.Start("filenamehere.exe ");

Feb 3 '07 #4

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

Similar topics

2
by: zapazap | last post by:
Dear Snake Charming Gurus, (Was: http://mail.python.org/pipermail/python-list/2004-January/204454.html) First, a thank you to Tim Golden, Thomas Heller, and Mark Hammond for your earlier help...
6
by: JerryP | last post by:
Hello, is there a way to launch the property dialogue for a directory from my c# app ? I would also like to launch the User Account Properties from Active Directory Users and Computers, and the...
4
by: Patrick de Ridder | last post by:
string message = string.Format( "mailto:{0}?subject={1}&body={2}", e_address, subject, body ); Process.Start( message ); These lines transfer an email text to Outlook Express. body is a string...
3
by: Micus | last post by:
Greetings, I need to execute 2 applications from an application or batch file. The first app launched has the user enter a product key and the app's exit code will be 0 (failed) or 1...
0
by: Hernan Garber | last post by:
Hi, Attached, the installation log. Win 2k Server SP3 IE6SP1/SQL Server Installed Thanks Setup.exe: Setup.exe: ========== Logging started ==========
6
by: raj | last post by:
Hi, I want to execute an Exe file in minimize mode. but when i m trying the following SHELLEXECUTEINFO lpExecInfo; memset(&lpExecInfo, 0, sizeof(SHELLEXECUTEINFO)); lpExecInfo.cbSize =...
2
by: Jay | last post by:
Hello, I have an issue and I don't know if this is the correct group to post to. If it isn't, just tell me the correct group, and I will post there. I wrote a Visual C++ application that will open...
3
by: baje | last post by:
hi everyone, need some help; have this code to open MS Word using CreateProcess; but it is not working; what am i missing? CreateProcess(NULL, "Winword.exe", NULL, NULL, FALSE, 0, NULL, NULL,...
4
by: Viviana Vc | last post by:
Hi all, I've read the WindowsVistaUACDevReqs.doc documentation and I have done different small tests on Vista to understand the bahaviour and now I have a few questions. 1) If I create a...
0
by: yxq | last post by:
Hello, The code below can popup the property dialog of a file, it works well on XP, Vista 32bit, but it will not work on Vista 64bit, how to correct it? i have tried to change integer to intptr,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...

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.