Windows Property sheet
-
hi ALL, 1)can anyone plz tell me how to disable the "property sheet" of any files.. When we right click we will see a context menu with the last one as properties.. which will display a set of properties such as General, Security etc. i want to disable this sheet... 2) how to disable the read only property of a file ... . I need the registry keys for the same... help me plz...
Proud To Be an Indian
-
hi ALL, 1)can anyone plz tell me how to disable the "property sheet" of any files.. When we right click we will see a context menu with the last one as properties.. which will display a set of properties such as General, Security etc. i want to disable this sheet... 2) how to disable the read only property of a file ... . I need the registry keys for the same... help me plz...
Proud To Be an Indian
There are no registry keys, you cannot stop windows from doing this, at least, I can't imagine how without writing what would essentially be a virus.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
There are no registry keys, you cannot stop windows from doing this, at least, I can't imagine how without writing what would essentially be a virus.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
its not for a virus . .. i agree that some will be using that but u know i need it my client. They want me to create an Undeletable file . .. There are keys which can disable Sharing, security. Even SYstem properties can be dsabled .. . so plz if anyone know plz tell me
Proud To Be an Indian
-
its not for a virus . .. i agree that some will be using that but u know i need it my client. They want me to create an Undeletable file . .. There are keys which can disable Sharing, security. Even SYstem properties can be dsabled .. . so plz if anyone know plz tell me
Proud To Be an Indian
vivekphlp wrote:
They want me to create an Undeletable file
Even stuff in the System32 folder is deletable - and that will break your system if you delete the right files. One way would be to create a windows service that opens the file and keeps it open. This would ensure that the file could not be deleted (you cannot delete a file if a process has opened it) This has some drawbacks. No other process can open the file with exclusive access. If the windows service were to be stopped then the file would be deletable again. (This is very easy to do)
Upcoming events: * Glasgow: SQL Server 2005 - XML and XML Query Plans, Mock Objects, SQL Server Reporting Services... Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website
-
vivekphlp wrote:
They want me to create an Undeletable file
Even stuff in the System32 folder is deletable - and that will break your system if you delete the right files. One way would be to create a windows service that opens the file and keeps it open. This would ensure that the file could not be deleted (you cannot delete a file if a process has opened it) This has some drawbacks. No other process can open the file with exclusive access. If the windows service were to be stopped then the file would be deletable again. (This is very easy to do)
Upcoming events: * Glasgow: SQL Server 2005 - XML and XML Query Plans, Mock Objects, SQL Server Reporting Services... Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website
-
it was possible if there was 2 user accounts - the clients insist to have only one USER - that too {{ADMIN}} . . .
Proud To Be an Indian
vivekphlp wrote:
it was possible if there was 2 user accounts
What do the number of user accounts have to do with it?
vivekphlp wrote:
the clients insist to have only one USER - that too {{ADMIN}} . . .
They are going to be disappointed because Windows requires other accounts for itself. Most notably the System account (which has greater rights than Administrator)
Upcoming events: * Glasgow: SQL Server 2005 - XML and XML Query Plans, Mock Objects, SQL Server Reporting Services... Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website
-
its not for a virus . .. i agree that some will be using that but u know i need it my client. They want me to create an Undeletable file . .. There are keys which can disable Sharing, security. Even SYstem properties can be dsabled .. . so plz if anyone know plz tell me
Proud To Be an Indian
Your client is a retard. It's not possible to have a file that cannot be deleted. There are ways to fight the user trying to delete it, but you can't make it impossible. You can make it hidden, but you can't stop them from deleting it when they find it. One possible solution, is to store a copy of the file in another location, and when your program runs ( or a service perhaps ), it copies the file back if it was deleted. But, you can't stop users from finding both files and deleting them, either.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )