Results 1 to 5 of 5
  1. #1
    Tell'em's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0

    Thumbs up 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

  2. #2
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    We have a snippet vault for a reason.



  3. #3
    Lyoto Machida's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Far away with girls
    Posts
    3,734
    Reputation
    133
    Thanks
    1,621
    My Mood
    Aggressive
    Nice you should post it in the right place -.-

  4. #4
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Quote Originally Posted by -WØW'' View Post
    Nice you should post it in the right place -.-
    That's what I said already



  5. #5
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Use the snippets vault for these please...

    /closed.


     


     


     



    The Most complete application MPGH will ever offer - 68%