Executing applications (exe files) from vb.net 2005, .net framework 2.0.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • priyamtheone
    New Member
    • Sep 2007
    • 88

    Executing applications (exe files) from vb.net 2005, .net framework 2.0.

    Hi everyone,
    This thing is a bit foggy to me, can anyone help?
    I hav created a windows explorer like application using VB.Net 2005. It has a listview control by which u can browse through all the local disk drives of ur machine as well as all the folders, subfolders and files in them by double clicking the folders. Now while browsing the files under a folder, if i get an exe file, i wanna execute that file by double clicking on it and start the application from right there just as we do in windows explorer. What's the procedure to that?

    Regards.
  • kadghar
    Recognized Expert Top Contributor
    • Apr 2007
    • 1302

    #2
    Originally posted by priyamtheone
    Hi everyone,
    This thing is a bit foggy to me, can anyone help?
    I hav created a windows explorer like application using VB.Net 2005. It has a listview control by which u can browse through all the local disk drives of ur machine as well as all the folders, subfolders and files in them by double clicking the folders. Now while browsing the files under a folder, if i get an exe file, i wanna execute that file by double clicking on it and start the application from right there just as we do in windows explorer. What's the procedure to that?

    Regards.
    You can try with ShellExecute,

    But if i remember well, in .net you can define a Process and use its Start method:

    [CODE=vb]dim Pro1 as process = new process
    pro1.start("c:\ app1.exe")[/CODE]

    HTH

    Comment

    Working...