Solved

XCOPY Logging options

Posted on 2008-06-23
4
1,833 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
  • 2
4 Comments
 
LVL 30

Expert Comment

by:Zoppo
Comment Utility
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
Comment Utility
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
Comment Utility
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 30

Accepted Solution

by:
Zoppo earned 500 total points
Comment Utility
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

Are your corporate email signatures appalling?

Is it scary how unprofessional your email signatures look? Do users create their own terrible designs and give themselves stupid job titles? You can make this a lot easier for yourself by choosing an email signature management solution from Exclaimer today.

Join & Write a Comment

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 listed in my profile here: http:…
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now