Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VC8.0 VB9.0 C++ Windows , +
1st I want to create a file which cannot be deleted.
2nd how to code an app so that user cannot end that task from task manager. or how I'll get to know that it is ending from task manager.
Posted 21-Jun-10 18:39pm
Edited 21-Jun-10 23:21pm
Moak11.4K
v3
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Unless you are the owner of the computer you're acting on you have no right to mess up someone else computer.
 
What you are trying to do, especially if done suspiciously without user knowledge, is illegal.
 
It is not the first question you're asking in this direction ...
  Permalink  
v2
Comments
pushpendrak at 22-Jun-10 13:41pm
   
nothing like that, i just want that, my user who is very naughty! cannot delete that log file i m writing. so i can verify later my app logs.
emilio_grv at 23-Jun-10 2:58am
   
You have no right to do so if the user you're working with doesn't want it.
Agree with the user, or don't provide him support.
 
OR ... develop the application so that log files are written with an impersonation different than the one of the logged-on user under a folder granted to that account and not to the user. (But you have to agree about the user's on that machine / domain)
 
OR ... log into the operating system event-log and access the log via event-viewer (But you have to agree with a computer admin)
 
But -in any case- don't mess up the user environment.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

pushpendrak wrote:
1st i want to create a file which cannot be deleted

You need to give it (or the parent folder) appropriate rights via a windows admin account.
 
pushpendrak wrote:
2nd how to code an app so that user cannot end that task from task manager.

Why does this sound suspicious.
Unsure | :~
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 240
1 Kamal Rocks 184
2 BillWoodruff 173
3 PIEBALDconsult 160
4 CPallini 155
0 OriginalGriff 5,695
1 DamithSL 4,506
2 Maciej Los 4,007
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,180


Advertise | Privacy | Mobile
Web01 | 2.8.141216.1 | Last Updated 22 Jun 2010
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100