Originally Posted by pauldovi
Would it be possible to use the AutoRun feature to create a shortcut on the desktop of a computer to my USB drive when I insert the drive.
The AutoRun file is Autorun.inf and a computer with Autorun enabled will run that file.
But will it work?
Yes it will. Here's a sample autorun and a vbs to add a shortcut (if you don't have the exe to do it):
set WshShell = WScript.CreateObject("WScript.Shell")
strDesktop = WshShell.SpecialFolders("Desktop")
set oShellLink = WshShell.CreateShortcut(strDesktop & "Shortcut Script.lnk")
oShellLink.TargetPath = "%windir%explorer.exe"
oShellLink.Arguments = "/n,/e," & WshShell.CurrentDirectory