UNdeletable file

Status
Not open for further replies.

vivekphlp

Broken In
I think err this post is made in wrong section . .. I was unable 2 find a section for programming...

Its some thing like - " i want to create a file which cannot be deleted.. " - an order from my clients --oops :mad: ...

Now the actual scenario --
I am having an appln and im creating a log file when the appln is running... NOw i want that log file to be undeletable by others ... >>.>>" the program has to be run in the Admin mode..."
How can i create such a file which cannot be deleted ...
DIGIT Techies plz help
 

it_waaznt_me

Coming back to life ..
Make that file attributed as system file .. It wont be visible...
On the command prompt type this :

attrib +h +s yourfile {press enter}

Should work
 
OP
V

vivekphlp

Broken In
Frnds it is something like a log file. .. . so that it cant be edited nor be deleted. . . Whenever a user logs to my applictaion, the log file is created/ appended with the login details. He shouldnot able to change the contents later .. .

Log file permission that i need to add -
*************************
REad - Eveyone
Write - Only thro my appln(working fine)
Delete - Only thro my appln(admin)
*//*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/
What 2 do???

it_waaznt_me said:
Make that file attributed as system file .. It wont be visible...
On the command prompt type this :

attrib +h +s yourfile {press enter}

Should work

tried that one but it will be just hidden .. "easily deletable" .. .
 
Last edited:
Status
Not open for further replies.
Top Bottom