Home All Groups Group Topic Archive Search About

How to create and delete file on PC File Share from Windows Mobile

Author
19 Jul 2006 6:38 PM
billyste
Has anyone be able to create or delete a file located in a PC File Share
folder? I keep getting a "UnauthorizedAccessException". I need to be able to
delete the file on the PC after the mobile device grabs a copy of the file.
The copy is working so I know I have a connection. I've opened all
permissions on the PC File Share but can't delete the file. I'm using the
file.delete("fullPath") method.

Thanks,
--
Billy

Author
20 Jul 2006 3:24 PM
billyste
I found out what my problem was. The share permissions were not being set.
Once I allowed 'write' the create and delete worked.
--
Billy


Show quote
"billyste" wrote:

> Has anyone be able to create or delete a file located in a PC File Share
> folder? I keep getting a "UnauthorizedAccessException". I need to be able to
> delete the file on the PC after the mobile device grabs a copy of the file.
> The copy is working so I know I have a connection. I've opened all
> permissions on the PC File Share but can't delete the file. I'm using the
> file.delete("fullPath") method.
>
> Thanks,
> --
> Billy

AddThis Social Bookmark Button