通俗基础教程
电脑操作教程
电脑怎样拨号上网
如何做个人网页
怎样做局域网
Word教程(文字处理)
图形图象处理入门
经典提高教程
怎样使用代理服务器
如何做无盘工作站
Photoshop教程
Dreamweaver3教程
Flash4&5教程
Firework3教程
Frontpage2000教程
Authware教程
Office2000教程
如何制作动画图片
OICQ&ICQ使用方法

高手学习指南

硬件升级技巧
CGI教程
ASP教程

PHP教程

注册表使用技巧
路由器的设置
网站建设指南
SQL
最近更新:
操作使用
相关内容

Windows 2000磁盘碎片整理脚本


  如果你懒地多动几下手,可以使用以下这段“智能”的碎片整理脚本
它将会自动地整理所有的本地驱动器,而不管他们有几个。将以下这段脚
本保存成 DEFRAG.VBS 文件,就可以手动执行或让计划任务去执行了。这
段脚本来自于 Winmag.com

  Dim NumDrives, FSO, Drives, Count

Set FSO = CreateObject("Scripting.FileSystemObject")
Set Drives = FSO.Drives
NumDrives = Drives.Count
NumDrives = NumDrives - NumDrives

Const DriveTypeFixed = 2
Const DriveTypeNetwork = 3

For Each Drive in Drives
If Drive.DriveType = DriveTypeFixed then NumDrives = NumDrives + 1
Next

Set Drives = Nothing
Set FSO = Nothing

set WshShell = CreateObject("WScript.Shell")
WshShell.Run "dfrg.msc"
WScript.Sleep 2000
While WshShell.AppActivate("Disk Defragmenter") = FALSE
wscript.sleep 1000
WshShell.AppActivate "Disk Defragmenter"
Wend

 do while (Count <= NumDrives)

    wscript.sleep 200
WshShell.SendKeys "%A"
    wscript.sleep 200
WshShell.SendKeys "D"

While WshShell.AppActivate("Defragmentation Complete") = FALSE
     wscript.sleep 5000
Wend

WshShell.AppActivate "Defragmentation Complete"
    wscript.sleep 200
WshShell.Sendkeys "{RIGHT}"
    wscript.sleep 200
WshShell.SendKeys "{ENTER}"
    wscript.sleep 500
WshShell.Sendkeys "{DOWN}"

Count = Count + 1

 loop

WshShell.Sendkeys "%{F4}"

引起显示器闪烁的音箱
让你的图标亮起来
光驱软故障
关于时好时坏的鼠标
双硬盘启动磨难记
Windows 中几类特殊数据的备份
Windows2000技巧及应用集粹(一)
COM口线居然会这样
电脑启动常见问题集锦
Windows2000技巧及应用集粹3
PQMagic秘技大观(分区管理)
奇妙的Shift键
如果使一台计算机同时拥有多种语言的windows
重启动然后重启动之连绵不绝
Windows2000技巧及应用集粹(四)
Windows 工具箱 - Snooper
“鸡”叫为何?
找回图标色彩
bios&cmos
CMOS与BIOS的区别
巧用GHOST来维护系统
几种特殊文件的恢复
Windows 2000磁盘碎片整理脚本
 
教程站
收集整理
服务大家