好像MoveFileEx也OK的,保护的文件就不行了 The MoveFileEx function renames an existing file or directory. BOOL MoveFileEx( LPCTSTR lpExistingFileName, // address of name of the existing file LPCTSTR lpNewFileName, // address of new name for the file DWORD dwFlags // flag to determine how to move file ); ParameterslpExistingFileNamePoints to a null-terminated string that names an existing file or directory. lpNewFileNamePoints to a null-terminated string that specifies the new name of lpExistingFileName. When moving a file, the destination can be on a different file system or drive. If the destination is on another drive, you must set the MOVEFILE_COPY_ALLOWED flag in dwFlags. When moving a directory, the destination must be on the same drive. Windows NT: //Reboot时,替换文件! If dwFlags specifies MOVEFILE_DELAY_UNTIL_REBOOT, lpNewFileName can be NULL. In this case, MoveFileEx registers the //可以删除文件的 lpExistingFileName file to be deleted when the system reboots.
ren c:\winnt\system32\b.dll c.dll
运行该BAT文件
电脑抱上介绍得多了!
但是可以自己建立这个文件。具体的section和ident网上有很多资料,去google查吧
The MoveFileEx function renames an existing file or directory. BOOL MoveFileEx( LPCTSTR lpExistingFileName, // address of name of the existing file
LPCTSTR lpNewFileName, // address of new name for the file
DWORD dwFlags // flag to determine how to move file
);
ParameterslpExistingFileNamePoints to a null-terminated string that names an existing file or directory. lpNewFileNamePoints to a null-terminated string that specifies the new name of lpExistingFileName.
When moving a file, the destination can be on a different file system or drive. If the destination is on another drive, you must set the MOVEFILE_COPY_ALLOWED flag in dwFlags.
When moving a directory, the destination must be on the same drive. Windows NT:
//Reboot时,替换文件!
If dwFlags specifies MOVEFILE_DELAY_UNTIL_REBOOT, lpNewFileName can be NULL. In this case, MoveFileEx registers the
//可以删除文件的
lpExistingFileName file to be deleted when the system reboots.
在2000下(尤其是你打了SP2或者SP3之后)想更改文件什么的,似乎不太现实吧?
真把微软想得也太弱智了点吧?不相信你可以自己试试,就连你删除一个Wscript.exe,它也会自动copy一份,呵呵
2.在没打SP之前改注册表然后重启一次就可以(改哪个KEY我忘了,你可以找找)
其它的就不行了,MS的WFP还是蛮厉害的,研究了很久也没搞定
所谓之,Windows一更新换代就没用了。
就此打住吧。