locked
Move a single file in C#

    Question

  • I am making a program that will help organize your files for you.  I am trying to figure out how to move a file from one location to another given the current location and the intended location.  I have looked over the internet for it, but have failed to find it.  Help?

    ~Travis Duffy


    Saturday, June 28, 2014 5:31 PM

Answers

  • Hi galaxyprogramming,

    Are you working with Windows Store App? I would suggest you to read the documentation before you want to do something with the file: File access and permissions.

    You have no privilege to move file from one place to another in Windows Store App except you have permission to access those folder. If you really want to do this, leave it with your user by:  How to save files through file pickers.

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Monday, June 30, 2014 7:53 AM
    Moderator