Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, according to http://msdn.microsoft.com/en-us/library/windows/apps/hh202959(v=vs.105).aspx[^]
i create a backgroundtransfer. i want when download is completed, that file moves to "Downloads Folder on root directory" (Phone or SD Card/Downloads). i don't know how can i make it, microsoft changes all codes on Windows Phone.

microsoft wrote a code on that topic>
C#
case TransferStatus.Completed:

  // If the status code of a completed transfer is 200 or 206, the
  // transfer was successful
  if (transfer.StatusCode == 200 || transfer.StatusCode == 206)
  {
    // Remove the transfer request in order to make room in the
    // queue for more transfers. Transfers are not automatically
    // removed by the system.
    RemoveTransferRequest(transfer.RequestId);

    // In this example, the downloaded file is moved into the root
    // Isolated Storage directory
    using (IsolatedStorageFile isoStore = IsolatedStorageFile.GetUserStoreForApplication())
    {
      string filename = transfer.Tag;
      if (isoStore.FileExists(filename))
      {
        isoStore.DeleteFile(filename);
      }
      isoStore.MoveFile(transfer.DownloadLocation.OriginalString, filename);
    }
  }



but i dont know where goes that file when moved!

please give me a code. thanks alot
Posted

1 solution

 
Share this answer
 
Comments
Nasi N 9-Dec-14 17:30pm    
not helping!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900