1 Replies - 735 Views - Last Post: 26 July 2012 - 09:24 PM Rate Topic: -----

#1 xerox600  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 26-July 12

Open .exe file in resources

Posted 26 July 2012 - 04:00 PM

Ok so I want to make an .exe file open when I click a button, so, so far I have put the .exe file in the resources and I am trying to make it open but I can get it to work. The closest code that I got was
Process.Start(My.Resources.FileName)
Please reply if you know how to fix this!

Sorry typo, I can NOT get it to work and that is the closest code I got
Is This A Good Question/Topic? 0
  • +

Replies To: Open .exe file in resources

#2 Vishal1419  Icon User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 135
  • Joined: 19-May 12

Re: Open .exe file in resources

Posted 26 July 2012 - 09:24 PM

Try
   If IO.File.Exists(filenameWithPath) Then
       Process.Start(filenameWithPath)
   Else
       MessageBox.Show(filenameWithPath & " Does not Exist")
   End If
Cathch ex as Exception
   Messagebox.show(ex.Message)
End Try



This is the code and one more thing
dont forget to import
Imports System.Diagonastics.Process


If Still it doesnt work and no error is displayed then put a breakpoint and watch
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1