tesekürler fakat
Find_Target.vbs nerde , sahsen ben olsam söyle bir anlatimi tercih ederdim:
Bir Programin hedef klasörünü bulmak icin genellikle o program kisayolunu sag tiklayip özellikler > hedefi bul deriz , fakat bu özelligi cokca kullaniyorsaniz direk sag tikladigmizda hedefi bul diye bir opsiyonumuz olsun istiyorsak asagidakileri uygulamamiz yeterlidir:
1. asagidaki kodu not defterine yapistirip bir isim veriniz ve uzantisini .bat olacak sekilde herhangi bir yere kaydedin:
Kod: Tümünü seç
cmdow.exe @ /hid
@echo off
setlocal
set FT="%TEMP%\Find_Target.tmp"
set FTV="C:\WINDOWS\system32\Find_Target.vbs"
@echo REGEDIT4>%FT%
@echo.>>%FT%
@echo [HKEY_CLASSES_ROOT\lnkfile\Shell\Hedefi Bul\command]>>%FT%
@echo @="wscript.exe \"C:\WINDOWS\system32\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 hedef.reg
del /q %FT%
endlocal
Bu yukaridaki .bat kodu calistirildiginda
C:\Windows\system32 klasörünün icine
Find_Target.vbs isminde bir vbs olusturur , eger birsekilde sizde bu olusmadi ise asagidakini notepad e yapistirip Find_target.vbs seklinde C:\Windows\system32 icine atiniz
Kod: Tümünü seç
Dim param, filenam, targt, shortct
Set param = WScript.Arguments
filenam = param (0)
Set WshShell = WScript.CreateObject("WScript.Shell")
Set shortct = WshShell.CreateShortcut(filenam)
targt = shortct.TargetPath
WshShell.Run "C:\Windows\explorer.exe /select," & Chr(34) & targt & Chr(34)
Asil isi yapan bu ve birazdan kullanacagimiz sag tikta hedefi bul olusmasini saglayan registry kaydidir.
2. asagidaki registry kaydini calistiriniz
Kod: Tümünü seç
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\lnkfile\Shell\Hedefi Bul\command]
@="wscript.exe \"C:\\WINDOWS\\system32\\Find_target.vbs\" \"%1\""
artik sag tikta hedefi bul diye bir Opsiyonumuz var
Mendenn
paylasim icin tekrar tesekkürler