参考代码一:
复制代码 代码如下:
Function DeleteLog( )
Dim objFSO, objFolder, strPath, targetFSO, subFSO, DirPath
DirPath = createobject("Scripting.FileSystemObject").GetFile(Wscript.ScriptFullName).ParentFolder.Path&"\Log\"
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set targetFSO = objFSO.GetFolder(DirPath)
Set subFSO = targetFSO.SubFolders
For Each subFolder in SubFSO
If DateDiff("d", subFolder.name, date)>3 Then
strPath = DirPath&subFolder.name
objFSO.DeleteFolder(strPath)
End If
Next
End Function
Call DeleteLog( )
这样在task Schdeuler里面schedule我的vbs程序就没有报错啦。撒花,结贴~~
参考代码二:
复制代码 代码如下:
Dim dqxs, dqrq, szxs, szfz, dqml, datp
Dim jclb
Dim c
dim d
'=========================================================
datp = "F:"
szxs = "7:00:"
wjml = datp & "\DVRDat\"
sykj = 20000000000 '20个G
dqml = left(wscript.scriptfullname,instrrev(wscript.scriptfullname,"\")-1)
jclb = "ServicesManager.exe,PD_Server.exe,SpeedServer.exe,CoreServer.exe,DownloadSVC.exe,ManagerConsole.exe,Gptsvr.exe,HintAMProxy.exe,FileServer.exe,CleanDisk.exe,GetNetData.exe,SGUClient.exe,SGUServer.exe,"
set WshShell = WScript.CreateObject("WScript.Shell")
Set fso = Wscript.CreateObject("Scripting.FileSystemObject")
'=========================================================
if fso.GetDrive(datp).FreeSpace < sykj then call cprlql
do
If InStr(time, szxs) <> 0 Then
if fso.GetDrive(datp).FreeSpace < sykj then call cprlql
end if
WScript.Sleep(60*1000)
loop
getfso=fso.GetFolder("c:\\windows").DateCreated
'===========================================================
Function cprlql
Dim strline, scml
WshShell.run "cmd /c dir " & wjml &" /ad /b /tc>c:\dir.log",0
if fso.FileExists("c:\dir.log") then
Set objFile = fso.OpenTextFile("c:\dir.log")
do until objFile.atendofstream
strline = objFile.readline
scml = wjml & strline
WshShell.run "cmd /c rd /s /q " & scml,0
for i = 1 to 20
if fso.GetDrive(datp).FreeSpace > sykj then exit Function
if fso.FolderExists(scml) then
WScript.Sleep(1000)
else
exit for
end if
next
if fso.GetDrive(datp).FreeSpace > sykj then exit Function
loop
end if
End Function
定时删除,vbs
RTX 5090要首发 性能要翻倍!三星展示GDDR7显存
三星在GTC上展示了专为下一代游戏GPU设计的GDDR7内存。
首次推出的GDDR7内存模块密度为16GB,每个模块容量为2GB。其速度预设为32 Gbps(PAM3),但也可以降至28 Gbps,以提高产量和初始阶段的整体性能和成本效益。
据三星表示,GDDR7内存的能效将提高20%,同时工作电压仅为1.1V,低于标准的1.2V。通过采用更新的封装材料和优化的电路设计,使得在高速运行时的发热量降低,GDDR7的热阻比GDDR6降低了70%。
更新动态
- 谢金燕.1997-精丫有容唱片】【WAV+CUE】
- 群星.2024-花间令电视剧原声带【TME影音】【FLAC分轨】
- 【古典音乐】贝尔曼《柴科夫斯基·第一钢琴协奏曲》2013[FLAC+CUE整轨]
- 群星.2020-宝丽金50周年金榜题名(国语篇)3CD【环球】【WAV+CUE】
- 群星《国语畅销金榜 第1集 日本版》[WAV+CUE][420MB]
- 张学友《一生拥友》[WAV+CUE][800MB]
- 赵传《一颗滚石的25年 精彩LIVE 2CD》[WAV+CUE][500MB]
- 吴宗宪《真心换绝情》1994[WAV+分轨]
- 群星.1997-TVB30周年全纪录2CD[香港首版]【WAV+CUE】
- 张国荣1990-风再起时[新宝艺][APE+CUE整轨]
- 《歌手 2018 歌手第二季 全季音频》[FLAC/分轨][6GB]
- 群星《最红抖音热门神曲 流行1号店长推荐热歌 3CD》[WAV+CUE][2.3GB]
- 左小祖咒《我爱南京 2023》[FLAC/分轨][300MB]
- 区瑞强-《民谣昔采》国语FLAC(16bit-44.1kHz)
- 群星-中国最强女中音[WAV+CUE]