Page 1 of 1

FILES

Posted: Tue Apr 27, 2010 10:28 am
by izidor
I am using QB64, but it FILES isn't implemented yet so I am making a replacement for it by using SHELL and DIR.

Code: Select all

SHELL "dir *.TXT > txt.txt "
'and then I open txt.txt and print it
This works perfectly, but it prints the date when the file was created.
Does anyone know how to remove it so I can see only the name and extension.

Files

Posted: Tue Apr 27, 2010 11:48 am
by winodude
You can use the "bare" listing of the DIR command...

dir *.txt /b

This will only list file names with extensions.

Posted: Tue Apr 27, 2010 11:55 pm
by bongomeno

Posted: Wed Apr 28, 2010 6:51 am
by izidor
Thanks both!