From: Moritz E. <mor...@we...> - 2004-09-30 11:04:16
|
Cause I often generate shortcuts with an "runas /user:Admin" statement, I added an optional parameter --icon and use this when setting the IconLocation of the shortcut-object. For instance I generate a shortcut for FileMonitor (SysInternals) like this: %Z%\bin\shortcut.pl "%windir%\System32\runas.exe" --arguments "/user:Administrator \"%ProgramFiles%\FileMon\Filemon.exe\"" special:AllUsersPrograms\FileMonitor(Admin) --icon "%ProgramFiles%\FileMon\Filemon.exe" Then I get the shortcut with the right Icon set. If you dont use the icon-option, you would get the icon of runas.exe. Maybe you find it useful? A diff is attached. -- Moritz |