Guest_imported
New member
- Jan 1, 1970
- 0
How would it be possible to take all the file names in a directory and in any sub-directorys and stick them in a variable or variables?
This is what I have now:
REM Q$ = CHR(34)
INPUT "Where are the files located"; dir$
INPUT "How many files are there"; numfiles
FOR x = 1 TO numfiles
INPUT "File Name"; x$
PRINT #1, " File "; Q$; dir$; x$; Q$
NEXT x
I would like to be able to make this process a little more automated and only have to ask where the files are. If I stick to the method I have now, the program will have to ask for the file information again later for an uninstall loop. Which could lead to some problems if you mistype a file name.
This is what I have now:
REM Q$ = CHR(34)
INPUT "Where are the files located"; dir$
INPUT "How many files are there"; numfiles
FOR x = 1 TO numfiles
INPUT "File Name"; x$
PRINT #1, " File "; Q$; dir$; x$; Q$
NEXT x
I would like to be able to make this process a little more automated and only have to ask where the files are. If I stick to the method I have now, the program will have to ask for the file information again later for an uninstall loop. Which could lead to some problems if you mistype a file name.