Hi. Yes DOS still lives.... I am directing multiple delete (DEL) commands to an output file e.g.
del /F /Q D:\Oracle\CoreM id\Apache\Apach e\logs\*.* >vh.txt
del /F /Q D:\Oracle\Core\ Apache\Apache\l ogs\*.* >>vh.txt
del /F /Q D:\Oracle\CoreM id\opmn\logs\*. * >>vh.txt
del /F /Q D:\Oracle\CoreM id\webcache\log s\*.* >>vh.txt
del /F /Q D:\Oracle\CoreI nfra\opmn\logs\ *.* >>vh.txt
I am appending the output in each case except line 1 - that part is ok.
However when there is an error message it doesnt appear in the output file. For example if I run this command (del /F /Q D:\Oracle\CoreM id\opmn\logs\*. *) at Dos prompt I get:
D:\Oracle\CoreM id\opmn\logs\HT TP_Server~1
The process cannot access the file because it is being used by another process.
D:\Oracle\CoreM id\opmn\logs\ip m.log
The process cannot access the file because it is being used by another process.
D:\Oracle\CoreM id\opmn\logs\OC 4J~home~default _island~1
The process cannot access the file because it is being used by another process.
However if I run it with output to file vh.txt i get:
D:\Oracle\CoreM id\opmn\logs\HT TP_Server~1
D:\Oracle\CoreM id\opmn\logs\ip m.log
D:\Oracle\CoreM id\opmn\logs\OC 4J~home~default _island~1
As you can see there are no error message in the output results that are written to file, but they are displayed if output is to screen.
How can I capture the error messages in the output file???
del /F /Q D:\Oracle\CoreM id\Apache\Apach e\logs\*.* >vh.txt
del /F /Q D:\Oracle\Core\ Apache\Apache\l ogs\*.* >>vh.txt
del /F /Q D:\Oracle\CoreM id\opmn\logs\*. * >>vh.txt
del /F /Q D:\Oracle\CoreM id\webcache\log s\*.* >>vh.txt
del /F /Q D:\Oracle\CoreI nfra\opmn\logs\ *.* >>vh.txt
I am appending the output in each case except line 1 - that part is ok.
However when there is an error message it doesnt appear in the output file. For example if I run this command (del /F /Q D:\Oracle\CoreM id\opmn\logs\*. *) at Dos prompt I get:
D:\Oracle\CoreM id\opmn\logs\HT TP_Server~1
The process cannot access the file because it is being used by another process.
D:\Oracle\CoreM id\opmn\logs\ip m.log
The process cannot access the file because it is being used by another process.
D:\Oracle\CoreM id\opmn\logs\OC 4J~home~default _island~1
The process cannot access the file because it is being used by another process.
However if I run it with output to file vh.txt i get:
D:\Oracle\CoreM id\opmn\logs\HT TP_Server~1
D:\Oracle\CoreM id\opmn\logs\ip m.log
D:\Oracle\CoreM id\opmn\logs\OC 4J~home~default _island~1
As you can see there are no error message in the output results that are written to file, but they are displayed if output is to screen.
How can I capture the error messages in the output file???
Comment