我正在使用 Windows XP。现在我遇到了一些问题,导致我PC
运行缓慢。所以我经常需要从目录中删除一些临时文件C:\WINDOWS\Temp
。有什么办法可以用脚本自动完成吗?
错误
当我尝试从我的机器运行脚本时出现以下错误:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\rakshiar>D:\WIPData\cleanup.ps1
C:\Documents and Settings\rakshiar>powershell.exe D:\WIPData\cleanup.ps1
File D:\WIPData\cleanup.ps1 cannot be loaded because the execution of scripts i
s disabled on this system. Please see "get-help about_signing" for more details
.
At line:1 char:23
+ D:\WIPData\cleanup.ps1 <<<<
+ CategoryInfo : NotSpecified: (:) [], PSSecurityException
+ FullyQualifiedErrorId : RuntimeException
C:\Documents and Settings\rakshiar>
谢谢