I’ve been looking for some way of opening files given their full name (path included). The only way I’ve found was the “Microsoft.VisualBasic” namespace, providing the old “Shell” function. However, this function only runs executable files.
Suppose I want to open a PowerPoint or Excel document given the following string: "C:\My Documents\FileToOpen.xls". I refrain from using the application’s dll by creating an object of the file’s type (ex: Excel.Application) because I want the Operating System to decide which application should be used to open the specified document.
Does anyone know some way of opening files?
Suppose I want to open a PowerPoint or Excel document given the following string: "C:\My Documents\FileToOpen.xls". I refrain from using the application’s dll by creating an object of the file’s type (ex: Excel.Application) because I want the Operating System to decide which application should be used to open the specified document.
Does anyone know some way of opening files?