Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Moving in c#

  1. #1
    New Coder
    Join Date
    Oct 2005
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Moving in c#

    What would be the button code to move c:/1.txt to c:/file/1.txt
    where it creates the folder if its not found
    Thanks

  • #2
    teh Moderatorinator
    Join Date
    Sep 2004
    Location
    USA
    Posts
    2,472
    Thanks
    4
    Thanked 40 Times in 40 Posts
    Use the Directory Class To determine if the directory exists. Then you can use the File.Copy Method to copy the file.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •