Solved

XCOPY Logging options

Posted on 2008-06-23
4
2,091 Views
Last Modified: 2008-06-23
Hi All

When using a batch file to run an XCOPY command i have it output to >E:\Logs\xcopy.log

Is there any further switches i can use to give me more info in the log, at the moment i just get output below but i would like the time / date included

D:\tdp\bak\Archive.zip
1 File(s) copied

Thanks

Nick
0
Comment
Question by:ncomper
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 31

Expert Comment

by:Zoppo
ID: 21846265
Hi ncomper,

XCOPY doesn't output the time/date ...

Do you want the current time/date? If so you can just call something like this:

date /t >> E:\logs\xcopy.log
time /t >> E:\logs\xcopy.log

Hope that helps,

ZOPPO
0
 
LVL 26

Expert Comment

by:farhankazi
ID: 21846364
You can use Microsoft command line tool RoboCopy.exe for enhanced logging function.

More info:
http://www.ss64.com/nt/robocopy.html
http://theether.net/download/Microsoft/Utilities/robocopy.pdf
0
 
LVL 5

Author Comment

by:ncomper
ID: 21846777
thanks

is there anywhere online i can look at all the commands that can be piped to a log file like the two you just gave me

date /t >> 
time /t >> 

Nick
0
 
LVL 31

Accepted Solution

by:
Zoppo earned 500 total points
ID: 21846967
Hi ncomper,

the outout from any program which is written to stdout or stderr can be piped into log files. I don't think there's a list of these, at least I don't know any.

ZOPPO
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Some time ago I faced the need to use a uniform folder structure that spanned across numerous sites of an enterprise to be used as a common repository for the Software packages of the Configuration Manager 2007 infrastructure. Because the procedu…
Welcome to my series of short tips on migrations. Whilst based on Microsoft migrations the same principles can be applied to any type of migration. My first tip Migration Tip #1 – Source Server Health can be found here: http://www.experts-exchang…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question