|
Answer» Hello Everyone, I am totally new at making a .bat file and would like some instructions on how to use one. First I am trying to PUT a "Find Target" on the right click of context menu! So I COPIED this .bat file from the instructions on the JSI website! I hope I so far did it correctly, what I did was right clicked on the empty desktop and created a New .txt file and placed the .bat file inside it and changed the extension from .txt to .bat! But I dont know where to go from there, I still dont have it in the right click context menu. How do I get it there? Thanks, Tom PS: here is the .bat file>>>
To add a Find Target option, an administrator would run Find_Target on the computer.
Find_Target.bat contains:
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
|