Untitled
unknown
plain_text
10 months ago
412 B
5
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 = NothingEditor is loading...
Leave a Comment