Hi Paul,
Such like this:
using System;
using System.Diagnost ics;
namespace invokemp3
{
/// <summary>
/// Summary description for Class1.
/// </summary>
class Class1
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] args)
{
Process p=new Process();
p.StartInfo.Fil eName=@"D:\musi c\Doctor Jones.wma";
p.StartInfo.Cre ateNoWindow=tru e;
p.Start();
}
}
}
HTH.
BTW: I love "doctor jones". :)
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
| From: "Paul Speranza" <pa**********@h otmail.com>
| Subject: C# equivalent of shell command
| Date: Tue, 19 Aug 2003 22:20:35 -0400
| Lines: 7
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <uE************ **@TK2MSFTNGP12 .phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
| NNTP-Posting-Host: 12-243-233-123.client.attb i.com 12.243.233.123
| Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP12.phx.g bl
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1775 84
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
|
| Does anyone know what the C# equivalent of the shell command is? I want to
| play an mp3 file using the users default player.
|
| Regards,
| Paul Speranza
|
|
|