Thumbs upSome useful vb codes

Posts 1–5 of 5 · Page 1 of 1
Some useful vb codes
here i show you some useful codes for visual basic 2010

Delet a file:
Code:
IO.File.Delete("c:\test1\test1.txt")
Delete a directory:
Code:
IO.Directory.Delete("c:\test1", True)
copy a file:
Code:
IO.File.Copy("c:\test1\test3.txt", "c:\test2\test4.txt")
move a file:
Code:
IO.File.Move("c:\test1\test4.txt", "c:\test2\test4.txt")
start a internet site:
Code:
process.start("www.mpgh.net")
or
process.start(textbox1.text)
open a file
Code:
Dim pr As Diagnostics.Process
pr = Diagnostics.Process.Start("readme.txt")
or 
pr = Diagnostics.Process.Start(textbox2.text)
credits to me
We have a snippet vault for a reason.
Nice you should post it in the right place -.-
Quote Originally Posted by Lyoto Machida View Post
Nice you should post it in the right place -.-
That's what I said already
Use the snippets vault for these please...

/closed.
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Talk with us