Jump to content

Recommended Posts

Posted

yeah i try the vbs script and it works, but like jaclaz said some antivirus takes it as a threat. So it cancels it or it deletes it.


Posted

Here is a VBS file that will run either .exe or .msi in any of the USB folders or sub folders

Save As UsbInstallAll.vbs

 Dim Act :Set Act = CreateObject("Wscript.Shell")
Dim Fso :Set Fso = CreateObject("Scripting.FileSystemObject")
Dim File, Obj
Recursive Fso.GetFolder(".")
Function Recursive(Folder)
For Each File In Folder.Files
If InStr(File.Path,".exe") Or InStr(File.Path,".msi") Then
'-> Run The Application
Act.Run(Chr(34) & File.Path & Chr(34)),1,true
End If
Next
For Each Obj In Folder.subFolders
Recursive Obj
Next
End Function

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...