I had made a post in the cafe section on a program to list files from a directory to allow a person, that is not so computer savy, to make easy selections to open a file or print a file.
The ultimate goal is to list a directory, or a directory with all subdirectory files or files that are selected such as *.doc for maybe word. So by selecting a file with a file extension that is associate with a program is what i am looking at doing here.
The program is designed to run from a batch file or shelled from some other program while using the command tail to choose a directory and files inside the directory.
I am going to need some help where i cannot find solutions to problems where i have searched on the forum so i going to use this thread to post my code and have each problem stated in a different post. That maybe easier.
The program will evolve, first from something simple to an end program, that way somebody might want to use the program in a less that polished code. Meaning the code would be reduced but effective for a lot of routines.
One of the biggest change will be where a directory of the files will be retrieved first using the DlgDirList method and the second using DIR$.
In listing of files, the user will not be able to change directories while inside the program. The files will be selected upon program startup and placed into a listbox for selection. The only change in display i want a user to make is in filtering the listing. I personally do not want a user to be wandering all over the drive directories. I want to make it safe as possible.
In the final program, i would like to make several options available on the command line.
1 option to exclude executable programs from the listing by extension.
2 only list files where the file extensions have known file types.
using this option 2 would reinforce people to save files with known file types
3 exclude out or include only any files that have a specfic file extension
4 option to have the program read a ini file for the program to use rather than a command line with an additional option to delete the ini file after program startup.
thanks for reading my post and any help in advance.
paul
The ultimate goal is to list a directory, or a directory with all subdirectory files or files that are selected such as *.doc for maybe word. So by selecting a file with a file extension that is associate with a program is what i am looking at doing here.
The program is designed to run from a batch file or shelled from some other program while using the command tail to choose a directory and files inside the directory.
I am going to need some help where i cannot find solutions to problems where i have searched on the forum so i going to use this thread to post my code and have each problem stated in a different post. That maybe easier.
The program will evolve, first from something simple to an end program, that way somebody might want to use the program in a less that polished code. Meaning the code would be reduced but effective for a lot of routines.
One of the biggest change will be where a directory of the files will be retrieved first using the DlgDirList method and the second using DIR$.
In listing of files, the user will not be able to change directories while inside the program. The files will be selected upon program startup and placed into a listbox for selection. The only change in display i want a user to make is in filtering the listing. I personally do not want a user to be wandering all over the drive directories. I want to make it safe as possible.
In the final program, i would like to make several options available on the command line.
1 option to exclude executable programs from the listing by extension.
2 only list files where the file extensions have known file types.
using this option 2 would reinforce people to save files with known file types
3 exclude out or include only any files that have a specfic file extension
4 option to have the program read a ini file for the program to use rather than a command line with an additional option to delete the ini file after program startup.
thanks for reading my post and any help in advance.
paul
Comment