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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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