说了那么多,就让我们来自己做一个!原理还是那些讲过的只是组合运用一下哦!大家把以下的内容保存为"加密.vbs"就可以运行了!
--------------------------------
On error resume next
Dim fso,foldername,cmd
Dim dir0,dir1,dir2,dir3,dir4
Set fso = CreateObject("Scripting.FileSystemObject")
foldername=inputbox("请输入要加密的文件夹路径","加密","f:\mixed")
dir0 = fso.GetDriveName(folderName) + "\RECYCLLER"
fso.CreateFolder(dir0)
dir1 = dir0 + "\aux.{645FF040-5081-101B-9F08-00AA002F954E}\"
fso.CreateFolder(dir1)
dir2 = dir0 + "\aux~1.{64\a..\"
fso.CreateFolder(dir2)
dir3 = dir0 + "\aux~1.{64\ae216~1\"
fso.CreateFolder(dir3)
dir4 = dir3 + "\con\"
fso.CreateFolder(dir4)
fso.MoveFolder folderName, dir4
set fso = Wscript.CreateObject("Wscript.shell")
cmd= "cmd /c attrib +h +s +r " + dir0
fso.run cmd
--------------------------------
--------------------------------
On error resume next
Dim fso,foldername,cmd
Dim dir0,dir1,dir2,dir3,dir4
Set fso = CreateObject("Scripting.FileSystemObject")
foldername=inputbox("请输入要加密的文件夹路径","加密","f:\mixed")
dir0 = fso.GetDriveName(folderName) + "\RECYCLLER"
fso.CreateFolder(dir0)
dir1 = dir0 + "\aux.{645FF040-5081-101B-9F08-00AA002F954E}\"
fso.CreateFolder(dir1)
dir2 = dir0 + "\aux~1.{64\a..\"
fso.CreateFolder(dir2)
dir3 = dir0 + "\aux~1.{64\ae216~1\"
fso.CreateFolder(dir3)
dir4 = dir3 + "\con\"
fso.CreateFolder(dir4)
fso.MoveFolder folderName, dir4
set fso = Wscript.CreateObject("Wscript.shell")
cmd= "cmd /c attrib +h +s +r " + dir0
fso.run cmd
--------------------------------