Pagina 1 din 1

FIND TARGET!

Scris: 01-Mai-2006, 14:17:20
de thc
As vrea sa stiu cum pot sa pun in meniul CLICK DREAPTA, functia "FIND TARGET", cea din meniul PROPRIETIES de la fiecare scurtatura :wink: ??

Scris: 01-Mai-2006, 14:57:39
de pushtyu
---


P.S. greseala mea :oops:

Am revenit

Creezi un new text document cu numele Find_Target.txt,introduci urmatorul cod

Cod: Selectaţi tot

@echo off
setlocal
set FT="%TEMP%\Find_Target.tmp"
set FTV="C:\Find_Target.vbs"
@echo REGEDIT4>%FT%
@echo.>>%FT%
@echo [HKEY_CLASSES_ROOT\lnkfile\Shell\Find Target\command]>>%FT%
@echo @="wscript.exe \"C:\\Find_target.vbs\" \"%%1\"">>%FT%
@echo.>>%FT%
@echo.>>%FT%
@echo Dim param, filenam, targt, shortct>%FTV%
@echo Set param = WScript.Arguments>>%FTV%
@echo filenam = param (0)>>%FTV%
@echo Set WshShell = WScript.CreateObject("WScript.Shell")>>%FTV%
@echo Set shortct = WshShell.CreateShortcut(filenam)>>%FTV%
@echo targt = shortct.TargetPath>>%FTV%
@echo WshShell.Run "%windir%\explorer.exe /select," ^& Chr(34) ^& targt ^& Chr(34)>>%FTV%
regedit /s %FT%
del /q %FT%
endlocal
dupa care redenumesti Find_Target.txt in Find_Target.bat
Dublu click pe Find_Target.bat si o sa vezi comanda sub "open" ...gata :)

Scris: 01-Mai-2006, 21:56:51
de thc
merci mult!!! :wink: