如果是在DOS下,或用软盘、光盘启动,还是没法阻止对时间的修改,不过只在Windows下禁止的话,
你可以这样试试:
Unit的Uses中加入Registry
在Private下定义Registry:Tregistry;
打开及操作注冊表
Registry:=Tregistry.create;
Registry.rootkey:=HKEY_LOCAL_MACHINE;
Registry.Openkey('Software/microsoft/Windows/currentVersion/policies/Explorer',true);
Registry.Writeinteger('Nosetfolders',1)
Registry.Free;