1

vbscript を使用して (EFS を使用して) プログラムでファイルを暗号化することは可能ですか? Windows 7 の c# で使用できる EFS API はありますか?

4

2 に答える 2

1

あなたの答えをC#に翻訳しました:

WshShell sh1 = new WshShell(); 
var retval = sh1.Run("CIPHER /E /S:" & strDir, 0, True); 
于 2013-01-14T05:08:27.813 に答える
0

まだ答えはありません!! 一方、1つのオプションは、次のスクリプトを使用することでした

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")
于 2013-01-14T03:52:43.607 に答える