Append text file data to log file, .bat -


This .bat file is used for website replication, And then produces a log file with job statistics I would like to include the contents of a text file at the end of the log file, is there an easy way to do this? "% 1" == "" Goto: Syntax calls for %% d (% 1): Copy Site% 1 Rib SubAnnection / Subdirectories D: \ inetpub \% 1 *. * / Setowner = Administrator REM / Grant = admin = F / Grant = System = F Robocopy D: \ inetpub \% 1 \ 111.111.11.11 \ D $ \ inetpub \% 1 / MIR / JB / NP / R: 3 / W : 3 / XD SitePublication / XD Site Lodge / XD Administration / XD Citestex / XF Calendar_Sixer. ASP / XF Navigation_Editor.asp / LOG: logs \ test% USERNAME% .log robocopy D: \ inetpub \% 1 \\ 111.111.11.11 \ D $ \ inetpub \% 1 / mir / jbb / np / r: 3 / w : 3 / XD SitePrint / XD Site Lodge / XL Administration / XD Catastatics / XF Canal_Sicker ASP / XF Navigation_Editor.asp /LOG+:logs\test.log Goto: EOF: Syntax ECOHO Usage: _REP_SITE WEB_Site ECHO ECHO Where: "WEB_Site" is the name of the folder that you call the ECHO IE. _REP_SITE www.test.com Want to copy ECHO Goto: END: Exit END

Something like this:

  type textfile.txt & gt; & Gt; Test.log  

?

(Note that in the batch file looks as you are currently creating two separate log files. That's intentionally?)

Alternatively, If you need to copy files elsewhere, you can:

  copy test.log + textfile.txt Destination .log  

From destination.log to test.log to textfile.log is finally added.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -