Hello again,
I've figured out how to strip out the extension:
Code:
FileSelectFolder, FolderName, , 3, Folder Contents - Choose a folder
if FolderName =
MsgBox, You didn't choose a folder.
else
{
Loop, %FolderName%\*.*, 0, 0
WordList = %WordList%%A_LoopFileName%`n
SplitPath, FolderName, OutFileName
FileName = C:\Documents and Settings\All Users\Desktop\%OutFileName%.txt
FileAppend, %WordList%, %FileName%.new
Loop, Read, %FileName%.new, %FileName%.tem
{
StringTrimRight, trimExt, A_LoopReadLine, 4
FileAppend, %trimExt%`n
}
FileMove, %FileName%.tem, %FileName%, 1
FileRead, Contents, %FileName%
if not ErrorLevel ; Successfully loaded.
{
Sort, Contents
FileDelete, %FileName%
FileAppend, %Contents%, %FileName%
Contents = ; Free the memory.
}
run, Notepad %FileName%
}
No I want to break up each line into individual words and create a file with one word on each line. I've looked at Stringsplit but teh example with the messge box doesn't make much sense to me. How do I get every single word?
Thanks,
GP