I have an app that needs to run a .bat file for certain tasks. I would like to make this file an embedded resource in VS2008 so that I know it will be in the correct place when I deploy the app. I dont want the user to have to make sure this file is in the correct directory or even know that this file exists. Is this possible? and how?
Below is the code that works when the file.bat in in the right directory.
Dim oSystemProcess As Diagnostics.Process
Dim oPsi As New System.Diagnostics.ProcessStartInfo _
("D:\Test\file.bat", **passed argumenst**)
oSystemProcess = Diagnostics.Process.Start(oPsi)