C# 如何使用EFS和vbscript加密文件?
是否可以使用vbscript以编程方式加密文件(使用EFS)。是否有任何EFS API可用于windows 7上的c#?还没有答案!!同时,一种选择是使用以下脚本C# 如何使用EFS和vbscript加密文件?,c#,encryption,vbscript,C#,Encryption,Vbscript,是否可以使用vbscript以编程方式加密文件(使用EFS)。是否有任何EFS API可用于windows 7上的c#?还没有答案!!同时,一种选择是使用以下脚本 Dim strDir, objShell, FSO, WshShell strDir = "D:\TestFolder" Set objShell = CreateObject("Shell.Application") Set FSO = CreateObject("Scripting.FileSystemObject") Set W
Dim strDir, objShell, FSO, WshShell
strDir = "D:\TestFolder"
Set objShell = CreateObject("Shell.Application")
Set FSO = CreateObject("Scripting.FileSystemObject")
Set WshShell = WScript.CreateObject("WScript.Shell")
retval = WshShell.Run("CIPHER /E /S:" & strDir, 0, True)
MsgBox("Success")
还没有答案!!同时,一种选择是使用以下脚本
Dim strDir, objShell, FSO, WshShell
strDir = "D:\TestFolder"
Set objShell = CreateObject("Shell.Application")
Set FSO = CreateObject("Scripting.FileSystemObject")
Set WshShell = WScript.CreateObject("WScript.Shell")
retval = WshShell.Run("CIPHER /E /S:" & strDir, 0, True)
MsgBox("Success")
我把你的答案翻译成C:
我把你的答案翻译成C: