Advertisement
TheVideoVolcano

Write file from resources to computer location.

Mar 29th, 2013
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.26 KB | None | 0 0
  1. //Write file from resources to computer location.
  2.  
  3.    Dim FileContent As String = My.Resources.mybatchfile
  4.       Dim Filename As String = "d:\temp\mybatchfile.bat"
  5.       My.Computer.FileSystem.WriteAllText(Filename, FileContent, False)
  6.       Process.Start(Filename)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement