I am looking for information on how to use variables through start>run on windows.
My script, that works, is as follows
Expand|Select|Wrap|Line Numbers
- import glob, os
- filetype = raw_input("File type ['*.*, *.txt']:")
- directory = raw_input("Directory ['C:\Windows']:")
- out = open("list.txt", "w")
- files = glob.glob(os.path.join(directory, filetype))
- for filename in files:
- out.write(filename + '\n')
Thanks for any help :D