none
Launch document with default associated application

    Question

  • Hey

    Can anyone tell me if an application similar to the start.exe exists on windows mobile? I'm making a small program that needs a run/open/view functionality. So I would like to just launch the document and have windows mobile do the rest.
    Like on windows you would type:
    start.exe c:\documents\report.doc (this would start Word or whatever is associated with .doc files and display the document)
    start.exe c:\images\car.jpg to (This would start the fax and image viewer or whatever you have associated with jpg files)

    Regards Hans Milling...

    Monday, April 12, 2010 6:33 AM

Answers

  • Hi Hans,

     

    'C# code :
    
     System.Diagnostics.Process.Start(("Path to the file you want to open"),string.Empty); 
    

     

    'VB Code :
    
    System.Diagnostics.Process.Start("Path to the file you want to open", string.Empty)

     

    I hope that helps

    • Proposed as answer by ashraf fawzy Monday, April 12, 2010 8:29 AM
    • Marked as answer by nivS Monday, April 12, 2010 11:57 AM
    Monday, April 12, 2010 7:49 AM

All replies

  • Hi Hans,

     

    'C# code :
    
     System.Diagnostics.Process.Start(("Path to the file you want to open"),string.Empty); 
    

     

    'VB Code :
    
    System.Diagnostics.Process.Start("Path to the file you want to open", string.Empty)

     

    I hope that helps

    • Proposed as answer by ashraf fawzy Monday, April 12, 2010 8:29 AM
    • Marked as answer by nivS Monday, April 12, 2010 11:57 AM
    Monday, April 12, 2010 7:49 AM
  • Great thanks, just what i needed.

     

    Monday, April 12, 2010 11:58 AM