A
aaron
I am trying to write a batch file that will run the defrag -a -v command for
a list of machines so I can determine which machines need defragged. I can't
seem to get it to go past one line. How do I make the file continue on to
the next line? I am doing this remote through ps tools psexec.
I would like to capture the ouput of the cmd window to a text file for easy
search and logging. All machines are Server 2003.
Ex: of what I would like for analysis
psexec \\server1 defrag -a -v c:
psexec \\server1 defrag -a -v d:
psexec \\server2 defrage -a -v c:
psexec \\server3 defrag -a -v c:
etc..........
Then
psexec \\server1 defrag c:
psexec \\server1 defrag d:
psexec \\server2 defrage c:
psexec \\server3 defrag c:
etc..........
TIA,
a list of machines so I can determine which machines need defragged. I can't
seem to get it to go past one line. How do I make the file continue on to
the next line? I am doing this remote through ps tools psexec.
I would like to capture the ouput of the cmd window to a text file for easy
search and logging. All machines are Server 2003.
Ex: of what I would like for analysis
psexec \\server1 defrag -a -v c:
psexec \\server1 defrag -a -v d:
psexec \\server2 defrage -a -v c:
psexec \\server3 defrag -a -v c:
etc..........
Then
psexec \\server1 defrag c:
psexec \\server1 defrag d:
psexec \\server2 defrage c:
psexec \\server3 defrag c:
etc..........
TIA,