svjae.blogg.se

Notepad++ sort documents by filename
Notepad++ sort documents by filename






But this time we’re going to give you a workaround.Īlthough there’s no straightforward way to sort a text file, we can achieve the same net result by doing the following: 1) Use the FileSystemObject to read the file into memory 2) Sort the file alphabetically in memory 3) Replace the existing contents of the file with the sorted data we have in memory. Oh, right: we were hoping everyone had forgotten about those times. But, hey, when have the Scripting Guys ever taken the easy way out? If we wanted to take the easy way out we’d just tell you, “Sorry, you can’t do that.” And we could get away with that because none of Microsoft’s scripting technologies feature a way to open up and then sort a text file. Hey, Scripting Guy! I have a text file that contains a list of computer names.








Notepad++ sort documents by filename