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

system(), Shell, ShellExecute Replacement?

Okay, I give up. What is the .NET way to do what ShellExecute does?

Bonus points: Any tips on how I should've been able to figure this out on my
own. I looked and looked!

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

Jul 16 '07 #1
3 4396
Hi,

"Jonathan Wood" <jw***@softcircuits.comwrote in message
news:Oz**************@TK2MSFTNGP03.phx.gbl...
Okay, I give up. What is the .NET way to do what ShellExecute does?
Process.Start

google: execute program C#
Jul 16 '07 #2
Thanks. Guess I was trying to depend on MSDN and the online help. Silly me.
I'll try Google from now on.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

"Ignacio Machin ( .NET/ C# MVP )" <machin TA laceupsolutions.comwrote in
message news:%2****************@TK2MSFTNGP06.phx.gbl...
Hi,

"Jonathan Wood" <jw***@softcircuits.comwrote in message
news:Oz**************@TK2MSFTNGP03.phx.gbl...
>Okay, I give up. What is the .NET way to do what ShellExecute does?

Process.Start

google: execute program C#
Jul 16 '07 #3

"Jonathan Wood" <jw***@softcircuits.comwrote in message
news:OQ*************@TK2MSFTNGP02.phx.gbl...
Thanks. Guess I was trying to depend on MSDN and the online help. Silly
me. I'll try Google from now on.
Or on http://www.pinvoke.net/default.aspx/...llExecute.html

The section saying "Alternative Managed API"
Jul 16 '07 #4

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

Similar topics

2
by: xyz | last post by:
I have a program that I need to update to work under Windows 95, Windows 98, and Windows XP to display a help file. Under Windows 95/98, I can use the following code: fil = App.Path &...
9
by: none | last post by:
Hello all, I wrote a shell program a few years ago in VB6 that needs to be modified. The problem I have is this: The SysAdmin uses this shell in place of Explorer, so there is no taskbar. When...
8
by: Siemel Naran | last post by:
Hi. I'm writing a command shell that reads commands from standard input. At this point I have the command in a std::string. Now I want to execute this command in the shell. From the Borland...
2
by: =?Utf-8?B?QWxlc3Npbw==?= | last post by:
I need to make a system call from an Excel macro to execute something in DOS. I there a command like system("command") in Visual Basic? Thanks a lot
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...
3
by: Waldy | last post by:
Hi there, why can't I open a browser window with a URl using ShellExecute? I have tried every combination of File, Parameters and Operation but it never works. You can enter the following: ...
1
by: kchantan | last post by:
I used the code below.. Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As...
6
by: ARC | last post by:
Hello all, 2 questions: 1) I'm trying to write my own html file using the following statement, where "pastetext" is set with the proper html code. filena = outputfolder &...
12
by: tom_kuehnert | last post by:
Hi! I'm trying to execute a program using system(). The program itself is located in some path which might contain whitespaces. Simple solution would be this: system("\"C:\A B\C.exe\""); ...
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: 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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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.