?
Solved

XCOPY Logging options

Posted on 2008-06-23
4
Medium Priority
?
2,208 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:Farhan Kazi
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 2000 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month10 days, 13 hours left to enroll

765 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