Results 1 to 3 of 3

Thread: ShellExecute in .NET {SOLVED}

  1. #1

    Thread Starter
    Addicted Member DJ_Catboy's Avatar
    Join Date
    Jan 2003
    Location
    Suffolk, UK
    Posts
    159

    ShellExecute in .NET {SOLVED}

    Hi,

    Is there a command in .NET (c# to be exact) that performs the same task as the ShellExecute API? I have a PDF file, and would like to show it - or force it to open in whatever windows would normally do with it if you double click on one. Does anybody know?

    Thanks in advance,
    DJ
    Last edited by DJ_Catboy; Aug 14th, 2003 at 07:50 AM.

  2. #2
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 2003
    Location
    Ashby, Leicestershire.
    Posts
    1,142
    use System.Diagnostics.Process
    eg:
    VB Code:
    1. System.Diagnostics.Process.Start("IEXPLORE.EXE","http://google.com");
    ~
    if a post is resolved, please mark it as [Resolved]
    protected string get_Signature(){return Censored;}
    [vbcode][php] please use code tags when posting any code [/php][/vbcode]

  3. #3

    Thread Starter
    Addicted Member DJ_Catboy's Avatar
    Join Date
    Jan 2003
    Location
    Suffolk, UK
    Posts
    159
    Perfect! Thanks a lot.

    DJ

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width