系统档案 [英] System file

查看:102
本文介绍了系统档案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

如何将任何文件存储为系统文件?
而且我还想知道我该如何制作任何人都无法打开的文件.

预先感谢.

Hello,

How can I store any file as a system file??
And I also want to know that how can I make a file which can not be open by anyone.

Thanks in advance.

推荐答案

有很多很好的理由说明将任何文件存储为系统文件"并不容易(或建议). 病毒".想想别的事.

至于创建任何人都无法打开的文件".这根本是不可能的-某些进程/用户将始终能够打开任何文件,除非已将其写入WOM:您的PC将具有无限量的标准文件. :laugh:

相反,请考虑对文件进行加密,使其无法读取,然后将其放在正常位置.
There are very good reasons why it is not easy (or recommended) to "store any file as a system file" - most of them called "viruses". Think of something else.

As far as "make a file which can not be open by anyone." that is not possible at all - some processes / users will always be able to open any file, unless it is written to WOM: your PC will have an infinite amount of that fitted as standard. :laugh:

Instead, consider encrypting your file so it can''t be read, and put it somewhere normal.


有一个win32 API,您可以尝试使用DLLImport调用

SetFileAttrib

不过,这有点狡猾,可能无法在所有Windows操作系统上使用.
There is a win32 API that you could try calling using DLLImport

SetFileAttrib

It is a bit dodgy though and may not work on all windows operating systems


这篇关于系统档案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆