run program from flash drive with vbs
<p>HI i was trying to make script to execute program from flash drive but it doesn't work and here is my script </p>

<pre><code>Set wshShell = wScript.CreateObject("wScript.Shell")
Set objFSO = Createobject("Scripting.FileSystemObject")
For Each objDrive In objFSO.Drives
If objDrive.DriveType = 1 Then
wshShell.run objDrive.DriveLetter &amp; "\ \Autoit\Scripts\Google Chrome\Delete.vbs"
End If
Next
</code></pre>