📄 sol17-5.vbs
字号:
Dim objSecurity, objSD, strSource, strDest, objFSO
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objSecurity = CreateObject("ADsSecurity")
strSource = "d:\data\report.doc"
strDest = "d:\backup\report.doc"
'copy the file to the destination
objFSO.CopyFile strSource, strDest
' get the security descriptor for the file
Set objSD = _
objSecurity.GetSecurityDescriptor("FILE://" & strSource)
'copy the security descriptor from the original file to the copied file
objSecurity.SetSecurityDescriptor objSD, "FILE://" & strDest
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -