Hi, does anyone know how to create a directory listing to a specified path on unix, show the files, then allow the user to select the files they want. Once you know what they selected, I want the files copied to another unix directory.
So far, this little tid bit will give me a list of files in the directory.
I guess the next step would be to create a temp table of some sort, display it, and have the user select from the list. A simple "*" character next to the file would be fine. For those of you who are running MFG/Pro, this utility will help in moving files back in to the inbox for reprocessing versus having the end user call IT support and move them.
So far, this little tid bit will give me a list of files in the directory.
I guess the next step would be to create a temp table of some sort, display it, and have the user select from the list. A simple "*" character next to the file would be fine. For those of you who are running MFG/Pro, this utility will help in moving files back in to the inbox for reprocessing versus having the end user call IT support and move them.
define var edi as char.
define var fn as char format "x(15)".
assign edi="ls /home/in".
input through value(edi) NO-ECHO.
repeat:
set fn.
display fn.
end.
input close.
OUTPUT:
file1.prn
file2.prn etc...
define var fn as char format "x(15)".
assign edi="ls /home/in".
input through value(edi) NO-ECHO.
repeat:
set fn.
display fn.
end.
input close.
OUTPUT:
file1.prn
file2.prn etc...