Skip to main content

Answered Question Copy files from one directory to another from SilverlightRSS Feed

(0)

skm.software@yahoo.com
skm.soft...

Member

Member

216 points

240 Posts

Copy files from one directory to another from Silverlight

Hi

I want to copy files from one directory to another from Silverlight where ever I want but not with ISOLATED STORAGE as it provide file handling access only for a particular directory.

Sachin Mukhija
"Please Mark as answer if answer is correct".

ksleung
ksleung

Contributor

Contributor

5830 points

1,102 Posts

Re: Copy files from one directory to another from Silverlight

You can't do this with Silverlight.

helena.munoz
helena.m...

Participant

Participant

1519 points

256 Posts

Re: Copy files from one directory to another from Silverlight

The only way of doing that without isloated storate is by using the OpenFileDialog to select the file you want to copy from, and the SaveFileDialog to select the file you want to copy to.

Silverlight Web Developer
Silverli...

Member

Member

101 points

378 Posts

Re: Copy files from one directory to another from Silverlight

The best way and what is needed is to read the file with StreamReader, locate it in memory and then write that memory to a new file with StreamWriter.

helena.munoz
helena.m...

Participant

Participant

1519 points

256 Posts

Answered Question

Re: Copy files from one directory to another from Silverlight

You cant use the Streams unless you get them through the Open/Save file dialogs. Thats because of Silverlight Security restrictions: http://progproblems.blogspot.com/2009/11/saveread-file-from-silverlight-30-in.html

  • Unanswered Question
  • Answered Question
  • Announcement