Показать полную графическую версию : [решено] Удаление ярлыков
masterchess
05-12-2011, 15:00
Как средствами AutoIt удалить ненужные ярлыки? В батнике например это выглядит так if exist "%AllUSERSProfile%\Рабочий стол\prog.lnk"
Del /f /q "%AllUSERSProfile%\Рабочий стол\prog.lnk"
if exist "%AllUSERSProfile%\desktop\prog.lnk"
Del /f /q "%AllUSERSProfile%\desktop\prog.lnk"
madmasles
05-12-2011, 20:07
masterchess,
$sShortcut = 'prog.lnk'
If (http://www.autoitscript.com/autoit3/docs/keywords.htm#If) FileExists (http://www.autoitscript.com/autoit3/docs/functions/FileExists.htm)(@DesktopCommonDir (http://www.autoitscript.com/autoit3/docs/macros.htm#@desktopcommondir) & '\' & $sShortcut) Then (http://www.autoitscript.com/autoit3/docs/keywords.htm#Then) FileDelete (http://www.autoitscript.com/autoit3/docs/functions/FileDelete.htm)(@DesktopCommonDir (http://www.autoitscript.com/autoit3/docs/macros.htm#@desktopcommondir) & '\' & $sShortcut)
© OSzone.net 2001-2012
vBulletin v3.6.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.