Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6127861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:33:39+00:00 2026-05-23T16:33:39+00:00

I am running an automated install of webservice on server, creating user, creating site

  • 0

I am running an automated install of webservice on server, creating user, creating site for the service, creating app pool etc.

I would like to write out errors to a log file, I’ve found out that “2>>” after each line gets me any errors! But how can I write a line before each errormessage just to categorize from which action the errormsg comes from?

I’m not that keen on dos cmd’s so any help is appriciated!

Thanks in advance, Finn.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T16:33:40+00:00Added an answer on May 23, 2026 at 4:33 pm

    Posting an outline of your script would be helpful.

    Assuming the script looks something like this:

    command1 params 2>>logfile
    
    command2 params 2>>logfile
    …
    

    you could modify it like this:

    ECHO %DATE% %TIME%: Running command1 params...>>logfile
    command1 params 2>>logfile
    ECHO %DATE% %TIME%: Running command2 params...>>logfile
    command2 params 2>>logfile
    …
    

    That is, if I understood your intention correctly, of course.

    DATE and TIME in this case are system environment variables. They are evaluated to the current system date and time respectively. You can omit them, of course. I just thought they wouldn’t harm if used with logging.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking into creating a automated way to check the running version of our
We are running a PHP (zend framework) app that creates a database per user
I am running a huge task [automated translation scripted with perl + database etc.]
I'd like to write the name of the currently running method to a log.
After running my automated tests in Visual Studio 2010, the Code Coverage Results tab
The problem I'm using fitnesse for running some automated tests. There is a class
Im am currently developing an automated test class (running several individual tests on other
I have some security related service running on my machine (start type = automatic)
Running Solr on Tomcat 7 on Win 2008 Server. I am looping through a
On http://www.slideshare.net/eljefe/automated-deployment-with-phing in slide 15 they are talking about locking the live site when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.