I have a need to create a script that will display the folder contents from (4) different data backup folders I have. At most, there would only be 44 data files to choose from.
I want the script to essentially cycle through each backup folder and display the content (with data modified) but also allow the user to be able to pick a certain data file. I am thinking something along the lines of CHOICE functionality, but dynamic where it would include a number to the beginning of the line in the command window so then the user could select (i.e. "4").
Here is my script to collect all content, but the output isn't really neat.
Code: Select all
:SELECT_BACKUP FOR %%D IN ("Daily" "Weekly" "Monthly" "Yearly") DO ( FORFILES /P "%BACKUPPATH%%%~D" /C "cmd /c ECHO @file @fdate @ftime" ) pause