I don't understand why this won't work for me. Any ideas? I tried it on Windows 8.0 and 10, and I tried both QB64 v1.4 and 1.5. Here is my problem:
Shell "dir /s >textfile.txt" correctly produces "textfile.txt" like I expect.
Shell "attrib /s >textfile.txt" does not produce the expected "textfile.txt"
If I just run Shell from a QB64 program and manually type "attrib /s >textfile.txt", it does correctly produce the text file.
If I make a .bat file (e.g., "createtextfile.bat") containing "attrib /s >textfile.txt" and then do Shell "createtextfile.bat", then the "textfile.txt" is created.
Any ideas on why attrib won't work from within the QB64 program? Perhaps there is a more elegant way of getting a listing of all files in the current directory and its sub directories. I appreciate ideas on that too!
LM