HDD Fiel Switch **MUST READ!!!!!!!!**

Discussion in 'Programming & Scripting' started by Canadian Piro, Feb 21, 2009 with 3 replies and 198 views.

  1. Canadian Piro

    Canadian Piro Getting There

    Messages:
    323
    Ratings:
    17
    does anyone know the code in visual basic to switch a file on your HDD while it's connected.


    Basicly I'm asking-when I click a button It will switch a modified verison of the file with the orginal file on the HDD - without ever tkaing the original one off of it()
     
  2. Michael Allison

    Michael Allison Enthusiast

    Messages:
    232
    Ratings:
    13
    If you're not talking about an in-use file, like shell32.dll or something, then just use System.IO.File.Replace(newfile, oldfile, nameofbackupfile, ignoremetadataerrorsasbooleanlol)
     
  3. unknown v2

    unknown v2 VIP VIP

    Messages:
    3,229
    Ratings:
    1,238
  4. Michael Allison

    Michael Allison Enthusiast

    Messages:
    232
    Ratings:
    13
    If you're right, OP just failed at clarity.