Untitled
unknown
plain_text
7 months ago
412 B
4
Indexable
' Create WScript Shell object Set WshShell = CreateObject("WScript.Shell") ' Get the current script's directory Set fso = CreateObject("Scripting.FileSystemObject") currentDir = fso.GetParentFolderName(WScript.ScriptFullName) ' Launch the batch script silently in the background WshShell.Run "cmd /c """ & currentDir & "\usb_copy.bat"" BACKGROUND", 0, False ' Clean up Set WshShell = Nothing Set fso = Nothing
Editor is loading...
Leave a Comment