I want to save to output of a dos command to a file. I know you can do this by using the redirect dos switch, i.e. dir >text.txt
However what I would like to do is make a script such that the name of the text file either takes the date/time or uses some other form of indexing such that it won't overwrite an existing text file, allowing me to schedule this command to be run and build up a set of output files, which I'm then going to analyse. I know you can use dir >>text.txt to simply append to an existing text file but I would rather have things separate. Any dos boffins about?
However what I would like to do is make a script such that the name of the text file either takes the date/time or uses some other form of indexing such that it won't overwrite an existing text file, allowing me to schedule this command to be run and build up a set of output files, which I'm then going to analyse. I know you can use dir >>text.txt to simply append to an existing text file but I would rather have things separate. Any dos boffins about?