Solved

XCOPY Logging options

Posted on 2008-06-23
4
1,903 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 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Issues with Windows Update and failing to boot - 2008 R2 18 77
batch file problem 5 45
SBS 2003 RWW Login 3 35
Domain Controller FSMO 7 36
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 is around source server preparation. No migration is an easy migration, there is a…
YESTERDAY YESTERDAY.BAT is inspired by a previous article I wrote entitled: TOMORROW.BAT (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/MS_DOS/A_4196-Advanced-Batch-File-Programming-TOMORROW-BAT.html). The crux of this batch f…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

786 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