Skip to content

Commit 310af31

Browse files
committed
Minor polishing
1 parent 5a24e9f commit 310af31

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

script/bdelock.vbs

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
' Created by: Shawn Brink
2-
' http://www.eightforums.com
3-
' Tutorial: http://www.eightforums.com/tutorials/21325-lock-drive-add-context-menu-bitlocker-drives.html
4-
'
5-
' Adapted and extended by Daniel Leidert
1+
' https://github.com/dleidert/bde-lock
62

73
If Wscript.Arguments.Count <= 0 Then
84
MsgBox "BitLocker Drive Locker error: No argument was given to the bdelock.vbs script.", VBOKOnly, "Error 2"
@@ -13,7 +9,7 @@ Last = Wscript.Arguments.Count - 1
139
For n = 0 To Last
1410
Drive = Drive & " " & Wscript.Arguments.Item(n)
1511
Next
16-
Drive = Replace(Drive,":\",":")
12+
Drive = Replace(Drive, ":\", ":")
1713
set Obj = CreateObject("Shell.Application")
1814
RetVal = Obj.ShellExecute("manage-bde.exe", "-lock -forcedismount " & Drive, "", "runas", 0)
1915
' I'd love to have something like this:

0 commit comments

Comments
 (0)