|
Answer» Hi All, Currently I'm having to duplicate a lot of my logging ouput to also be seen if RUN manually.
In unix I'd do something like ... Code: [Select]echo This is an echo | tee -a /some/output/file.txt Is there anything similar in a batch/msdos environment ?
Cheers, CameronNothing built in, I am afraid. There is the the Tee-Object cmdlet in Windows Powershell, or you can get the GNU Core Utils which include tee.exe.
http://gnuwin32.sourceforge.net/packages/coreutils.htm
With a Unix background you might find them useful.
I Googled & FOUND various tee programs for Windows that you can download and a vbs script that would be handy if you cannot install addon software.
http://www.google.co.uk/search?source=ig&hl=en&rlz=&q=windows+tee&btnG=Google+Search&meta=&aq=f Many thanks Dias,
Not SURE how much time I'll be spending on the msdos side of THINGS after my current project is finished. However will check out those links and bookmark them should my msdos experience be extended
Cheers, CameronBeware of confusing ms-dos and nt command prompt!!!
|