Click here to Skip to main content
15,905,229 members
Home / Discussions / C#
   

C#

 
AnswerRe: Como proteger un archivo XML para que no pueda ser borrado de la PC Pin
BobJanova11-Oct-11 5:08
BobJanova11-Oct-11 5:08 
AnswerRe: Como proteger un archivo XML para que no pueda ser borrado de la PC PinPopular
Richard MacCutchan11-Oct-11 5:30
mveRichard MacCutchan11-Oct-11 5:30 
GeneralRe: Como proteger un archivo XML para que no pueda ser borrado de la PC Pin
Paul Conrad11-Oct-11 7:58
professionalPaul Conrad11-Oct-11 7:58 
AnswerRe: Como proteger un archivo XML para que no pueda ser borrado de la PC Pin
jschell11-Oct-11 8:43
jschell11-Oct-11 8:43 
AnswerRe: Como proteger un archivo XML para que no pueda ser borrado de la PC Pin
Eddy Vluggen11-Oct-11 9:41
professionalEddy Vluggen11-Oct-11 9:41 
GeneralRe: Como proteger un archivo XML para que no pueda ser borrado de la PC Pin
Subin Mavunkal11-Oct-11 21:03
Subin Mavunkal11-Oct-11 21:03 
GeneralRe: Como proteger un archivo XML para que no pueda ser borrado de la PC Pin
Eddy Vluggen12-Oct-11 0:10
professionalEddy Vluggen12-Oct-11 0:10 
AnswerRe: Como proteger un archivo XML para que no pueda ser borrado de la PC Pin
Bernhard Hiller11-Oct-11 21:40
Bernhard Hiller11-Oct-11 21:40 
First let me try to translate the subject of your message for those who neither speak Spanish nor are willing to accept #2 of "HOW TO ANSWER A QUESTION":
"How to protect an XML file so that it cannot be deleted from the computer"

A very simple solution is to make the file hidden (see file attributes http://msdn.microsoft.com/es-es/library/system.io.file.setattributes(v=VS.90).aspx[^]). Of course, that's simple and the user can easily find that out.

You can make it more difficult for the user when you write a Windows service. That would run with "Local System Account" and thus has different access rights to files. A user with admin privileges could still delete it.
QuestionFile.Copy does not copy and does not throw any exception Pin
Shlabh Sharma11-Oct-11 3:26
Shlabh Sharma11-Oct-11 3:26 
AnswerRe: File.Copy does not copy and does not throw any exception Pin
fjdiewornncalwe11-Oct-11 4:05
professionalfjdiewornncalwe11-Oct-11 4:05 
GeneralRe: File.Copy does not copy and does not throw any exception Pin
Manish K. Agarwal11-Oct-11 20:10
Manish K. Agarwal11-Oct-11 20:10 
AnswerRe: File.Copy does not copy and does not throw any exception Pin
BobJanova11-Oct-11 4:06
BobJanova11-Oct-11 4:06 
GeneralRe: File.Copy does not copy and does not throw any exception Pin
Manish K. Agarwal11-Oct-11 20:11
Manish K. Agarwal11-Oct-11 20:11 
AnswerRe: File.Copy does not copy and does not throw any exception Pin
PIEBALDconsult11-Oct-11 4:20
mvePIEBALDconsult11-Oct-11 4:20 
GeneralRe: File.Copy does not copy and does not throw any exception Pin
Shlabh Sharma11-Oct-11 20:01
Shlabh Sharma11-Oct-11 20:01 
GeneralRe: File.Copy does not copy and does not throw any exception Pin
Manish K. Agarwal11-Oct-11 20:53
Manish K. Agarwal11-Oct-11 20:53 
GeneralRe: File.Copy does not copy and does not throw any exception Pin
Manish K. Agarwal12-Oct-11 22:40
Manish K. Agarwal12-Oct-11 22:40 
Questionproblem with chart in rdlc report Pin
md_refay10-Oct-11 23:24
md_refay10-Oct-11 23:24 
AnswerRe: problem with chart in rdlc report Pin
PIEBALDconsult11-Oct-11 2:56
mvePIEBALDconsult11-Oct-11 2:56 
GeneralRe: problem with chart in rdlc report Pin
Keith Barrow11-Oct-11 3:47
professionalKeith Barrow11-Oct-11 3:47 
QuestionHow to merge databases in C# Pin
angel 210-Oct-11 20:06
angel 210-Oct-11 20:06 
AnswerRe: How to merge databases in C# Pin
Wayne Gaylard10-Oct-11 20:48
professionalWayne Gaylard10-Oct-11 20:48 
GeneralRe: How to merge databases in C# Pin
angel 210-Oct-11 21:39
angel 210-Oct-11 21:39 
GeneralRe: How to merge databases in C# Pin
BobJanova10-Oct-11 22:59
BobJanova10-Oct-11 22:59 
GeneralRe: How to merge databases in C# Pin
angel 210-Oct-11 23:20
angel 210-Oct-11 23:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.