Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: writing ECHO to a file  (Read 2185 times)

0 Members and 1 Guest are viewing this topic.

gregorr

  • Guest
writing ECHO to a file
« on: February 15, 2006, 04:07:23 AM »
Hi
How do I write ECHO to a file from a .bat file


echo on
cmd /c e:\Warehousemanager\bin\cron
echo >> E:\WarehouseManager\bin\test.txt
echo off


all I get in the test.txt is
ECHO is on.

What I want is everything that is echo to screen to be echoed to file

gpl



    Apprentice
  • Thanked: 27
    Re: writing ECHO to a file
    « Reply #1 on: February 15, 2006, 11:48:14 AM »
    try this
    echo on
    >> E:\WarehouseManager\bin\test.txt  cmd /c e:\Warehousemanager\bin\cron
    echo off
    Graham