General Discussion Undecided where to post - do it here. |
Reply to Thread New Thread |
![]() |
#1 |
|
Ok this may sound like a daft question.
But.... I want a text file containing all the files that were modified in the last 24 hours sorted as a single file on a single line i.e. ----list.txt----------- c:\myfile.txt c:\myoutherfile.txt this is how far i have got: dir /A-D /S /B t: > list.txt gives me a full list and find /mnt/drive -type f -mtime -1 > list.txt this works for linux but i need a batch file. |
![]() |
![]() |
#2 |
|
so you want it on a single line? For example,
c:\windows C:\program files c:\document and settings Like that? And what do you mean you need it in a batch file? You already have the command you need. Just but it in a *.bat or *.sh (with +x) and just run the batch file. Are you talking about creating a batch file that is more generic, or a batch file that accepts arguments? For example, being able to specify the directory to search and the name of the output file? |
![]() |
![]() |
#3 |
|
|
![]() |
Reply to Thread New Thread |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|