Using resources

I've inserted an exe file in the resources of my application, but i don't know how to manage it... how can I run or extract it to the running folder?
[151 byte] By [Rainz] at [2007-12-24]
# 1
To "extract" it :
My.Computer.FileSystem.WriteAllBytes("C:\test.exe", My.Resources.ProgramName, True)
Then to run it :
Process.Start("C:\test.exe")
MoayadMardini at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 2
thank you!
Rainz at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...