Mombu the Microsoft Forum

Mombu the Microsoft Forum > Microsoft > Windows 2003 Server (TECHNET) > Append to the same log file
REGISTER NOW! Search Today's Posts Mark Forums Read




Reply
 
Thread Tools Search this Thread Display Modes
1 22nd April 21:55
kkd
External User
 
Posts: 1
Default Append to the same log file



How do I write a batch file that will append the same log file .
Thanks,

KKD
  Reply With Quote
SPONSORED LINKS BY GOOGLE

 


2 22nd April 21:55
richard mueller [mvp]
External User
 
Posts: 1
Default Append to the same log file



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
--
  Reply With Quote
3 26th April 04:13
asdf
External User
 
Posts: 1
Default Append to the same log file


Appending is the modus to append to a file.

if you append the "other" or same file,
it will be appended (twice).
  Reply With Quote
SPONSORED LINKS BY GOOGLE

 


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes







Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
Also visit Ogoun the Usenet Archive
666