Hi all.
Been a mainframe programmer forever, but recently started messing with PC COBOL, ancient RM compiler, dating back to my college days.
What I need to know, is it possible to perform a CALL to a dos utility, for instance DIR, or COPY or DEL, RENAME, basically any file handling utils. I need to know from within my program what files are available on disk, in a certain directory, for the user to open. On A-Series UNISYS, we've got a function "SCANDIR" with a bunch of parameters to determine what files there are. Maybe something like that available for PC?
The problem of dynamically changing a filename when creating it, is something I've sorted out, but now there might be several files that the user can choose between. And I need to list them.
Any help/"wild ideas" will be tried. I've fried my brains and tried just about any possible method I could think of.
Been a mainframe programmer forever, but recently started messing with PC COBOL, ancient RM compiler, dating back to my college days.
What I need to know, is it possible to perform a CALL to a dos utility, for instance DIR, or COPY or DEL, RENAME, basically any file handling utils. I need to know from within my program what files are available on disk, in a certain directory, for the user to open. On A-Series UNISYS, we've got a function "SCANDIR" with a bunch of parameters to determine what files there are. Maybe something like that available for PC?
The problem of dynamically changing a filename when creating it, is something I've sorted out, but now there might be several files that the user can choose between. And I need to list them.
Any help/"wild ideas" will be tried. I've fried my brains and tried just about any possible method I could think of.