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 8748633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:33:35+00:00 2026-06-13T12:33:35+00:00

I use with robcopy in my batch file. I want that if these batch

  • 0

I use with robcopy in my batch file.
I want that if these batch file will run on OS without robcopy installed the error about it WILL appear in the loG file.the error about it is:

‘robocopy’ is not recognized as an internal or external command, operable program or batch file.

my code is:

robocopy Obl\BR "%WEBDIR%\BR"  /E /LOG+:%TMPLog% >nul

but this error appear only on the console not appear in TMPLog.
maybe errors of this kind should not appear in logs?
if yes what I can to do?
maybe try and catch if it exist in batch file?!

  • 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-06-13T12:33:37+00:00Added an answer on June 13, 2026 at 12:33 pm

    I’m not at my Windows 7 PC at the moment so can’t really verify this thing, but would logging the output of robocopy using the >> redirection be the same as logging with the /LOG+ switch? If so, you could redirect stderr (where the not recognized message is sent) to stdout, and stdout to your %TMPLog% file, like this:

    robocopy Obl\BR "%WEBDIR%\BR"  /E >>%TMPLog% 2>&1
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use robocopy in my batch file to copy folders. I want standard output
use C#,want to upload excel file on google doc. bellow syntax use to upload
use Image::Imlib2; my $a = Image::Imlib2->load(/foo/file); gives me the following error: Runtime error: Image::Imlib2
use case is simple: I want to run some boiler plate code before each
Hi I'm trying to use robocopy to copy a single file from my computer
Use of java.net.URLConnection is asked about pretty often here, and the Oracle tutorial is
use pthread_create to create limited number of threads running concurrently Successfully compile and run
use warnings; use Test::More; use File::Find::Rule; use Test::File::Find::Rule; my $rule = File::Find::Rule->file->name('*.pl')->not_grep(qr/^\s*use\s+strict;/m, sub {
I need to write to a particular log file, and append the results of
Use case: I find a piece of code that I do not understand at

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.