2013-01-12 39 views

回答

1

我翻譯你的答案爲C#:

WshShell sh1 = new WshShell(); 
var retval = sh1.Run("CIPHER /E /S:" & strDir, 0, True); 
0

還沒有答案!同時一個選項是使用如下因素腳本

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")