quote:
Originally posted by Jimbodude
Any way to do it without file extensions because i want to do this for like 300 files
There is probably an easier way using some kind of posix features, but I'm not that smart. So, here's some Python.
import os
output = open("output.txt",'a')
filenames = os.listdir("C:\\directory\\you\\want\\to\\list\\")
for file in filenames:
output.write(file.split(".")[0] + "\r\n")
output.close()
just a first order approximation of course, I mean, this is not going to be that grand for files with more than one period in them. But, it will do for a measly 300 files.
was put impeccably into words at DebianDay for me last Saturday, by Knut Yrvin of Trolltech - adults try something once, fail, and then are like "ffs this doesn't work". Children try, fail, and then try again, and succeed - maybe on the second, or even fifth retry. But the thing is that they keep at it and overcome the problems in the end.
-andrewdodd13