locked
how do you move files? RRS feed

  • Question

  • I read the pdf tutorial "introducing small basic"  whilst it was good it was mostly about creating graphics

    so after reading it I still dont know how to do a simple thing like moving files on my computer!

    How do you move for example  Test.txt from say C:\my test folder   to D:\My result folder

    Thursday, November 4, 2010 3:55 PM

Answers

  • You can use

    File.CopyFile("C:\my test folder\Test.txt", "D:\My result folder\Test.txt")

    File.DeleteFile("C:\my test folder\Test.txt")

    • Marked as answer by litdev Thursday, November 4, 2010 10:12 PM
    Thursday, November 4, 2010 4:52 PM