I had in my ahk script such excerpt to add to selected file prefix _T_ when I hit "+" and "T" when file or files are selected.
But I accidentally hit this combination when a folder was selected. Now it has type "file" whithout extension and name with this prefix "_T_", but I didn't want that. In this folder there were some little files - I want those files to come back.
Please help me what can I do? Maybe some ahk script or something in Windows settings or something else can help? My operating system is Windows 7 Pro.
This is my ahk script (this script was probably from this forum):
Code: Select all
~SC00D & t::
prefix := "_T_"
WinGet, process, processName, % "ahk_id" hwnd := hwnd? hwnd:WinExist("A")
WinGetClass class, ahk_id %hwnd%
if (process!="explorer.exe")
return
if (class ~= "(Cabinet|Explore)WClass")
{
for window in ComObjCreate("Shell.Application").Windows
if (window.hwnd==hwnd)
break
}
else
return
collection := window.document.SelectedItems
for item, index in collection
{
SplitPath, % item.path, OutFileName, OutDir, OutExtension, OutNameNoExt, OutDrive
;if (!InStr(OutNameNoExt, "_P_")) or (!InStr(OutNameNoExt, "_T_"))
FileMove, % item.path, %OutDir%\%Prefix%%OutFileName%, 1
}
return