sanson06 Posted September 4, 2009 Author Share Posted September 4, 2009 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. Link to comment Share on other sites More sharing options...
strel Posted September 4, 2009 Share Posted September 4, 2009 I think jaclaz was referring to hide console apps, not the .vbs Link to comment Share on other sites More sharing options...
gunsmokingman Posted September 4, 2009 Share Posted September 4, 2009 Here is a VBS file that will run either .exe or .msi in any of the USB folders or sub foldersSave As UsbInstallAll.vbs Dim Act :Set Act = CreateObject("Wscript.Shell")Dim Fso :Set Fso = CreateObject("Scripting.FileSystemObject")Dim File, ObjRecursive 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now