This Script for display a list of file and folder names
Code: Select all
Global strFile := A_ScriptDir . "\Liste.txt"
FileDelete, %strFile%
FileSelectFolder, dir, , 3
if(dir) {
Sub(dir . "\*.*", 0)
run, %strFile%
ToolTip,
}
Return
Sub(strDir, intLevel) {
ToolTip, Level #%intLevel% %strDir%
Loop, %intLevel%
strTabs := strTabs . A_Tab
Loop, %strDir%, 2 ; scan folders
{
FileAppend, %strTabs%\%A_LoopFileName%`n, %strFile%
Sub(A_LoopFileFullPath . "\*.*", intLevel + 1) ; Recurse to subdirectory
}
Loop, %strDir%, 0 ; now scan files only
{
FileAppend, %strTabs%\%A_LoopFileName%`n, %strFile%
}
}
I mean: How to display files and folders names without:
1- File extension
2- this sign " \ "
Any help would be greatly appreciated
Thanks in advance