How to log execution of batch file in a txt file

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • abhaybhat

    How to log execution of batch file in a txt file

    I run a batch file, which is nothing but a make file of my project. It
    also does linting for me.

    Hence the execution of the batch file in the DOS window can be seen,
    which is very huge(i have around 2000 .c files in the project)

    Here i need to log the execution of the batch file in a .txt file so
    that i can analyse the details of the execution.

    The execution is so huge that i loose most of the execution-data from
    the dos screen, and a small portion is available.

    Thanks,

    Abhay
  • Ian Collins

    #2
    Re: How to log execution of batch file in a txt file

    abhaybhat wrote:
    I run a batch file, which is nothing but a make file of my project. It
    also does linting for me.
    >
    Hence the execution of the batch file in the DOS window can be seen,
    which is very huge(i have around 2000 .c files in the project)
    >
    You'd better ask in a windows or DOS group.

    --
    Ian Collins.

    Comment

    • rahul

      #3
      Re: How to log execution of batch file in a txt file

      On Jun 11, 9:30 am, abhaybhat <abha...@gmail. comwrote:
      I run a batch file, which is nothing but a make file of my project. It
      also does linting for me.
      >
      Hence the execution of the batch file in the DOS window can be seen,
      which is very huge(i have around 2000 .c files in the project)
      >
      Here i need to log the execution of the batch file in a .txt file so
      that i can analyse the details of the execution.
      >
      The execution is so huge that i loose most of the execution-data from
      the dos screen, and a small portion is available.
      >
      Thanks,
      >
      Abhay
      May be you should try output re-direction.
      C:\batch.bat log.txt

      Anyways, this question does not belong here.

      Comment

      Working...