![]() |
|
SPONSORED LINKS BY GOOGLE |
|
2
22nd April 21:55
External User
Posts: 1
|
The ">>" redirection operator appends to the end of the file, while ">"
creates or overwrites the file. For example: echo This is the first line> c:\Scripts\LogFile.log echo This is the second line>> c:\Scripts\LogFile.log echo This is the third line>> c:\Scripts\LogFile.log If the file already exists and you want to append, do not use ">", just ">>". The file will still be created if it does not exist. The only time you should use ">" is when you want to overwrite any existing file. -- Richard Mueller Microsoft MVP Scripting and ADSI Hilltop Lab - http://www.rlmueller.net -- |
|
|
SPONSORED LINKS BY GOOGLE |
|
|