Computing.Net > Forums > Programming > batch move files log help

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

batch move files log help

Reply to Message Icon

Name: Allen (by dryroasted_99)
Date: August 24, 2008 at 18:32:23 Pacific
OS: WIN
CPU/Ram: 512
Product: Dell
Comment:

i am working on script that moves file from a pc to a server. The user wants logs on her pc. The script that I have worked on works and it even gets her the logs but i can't show in the log how many files were moved or for example none were moved. Can you please help!

@echo off
:: variables
set drive=pc41136
set time = echotimestamps 1
set folder=%date:~4,2%/%date:~7,2%/%date:~10,4%
set backupcmd=xcopy /s /c /d /e /h /i /r /y
rem from pc to target pc
%backupcmd% "\\pc29224\c$\fastpush" "\\pc41136\c$\backup"
echo Backup Complete! - Your Backup folder is located at %drive% Date: %folder% Time: %time% >>\\nt29224\c$\log.txt



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: August 25, 2008 at 06:38:40 Pacific
Reply:

xcopy /blabla > backup.log


=====================================
If at first you don't succeed, you're about average.

M2


0

Response Number 2
Name: Allen (by dryroasted_99)
Date: August 25, 2008 at 07:36:29 Pacific
Reply:

Thank you Mechanix2Go. It works.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: batch move files log help

Batch Move Files From [list1] to [list2] www.computing.net/answers/programming/batch-move-files-from-list1-to-list2/19130.html

Moving Files using Java www.computing.net/answers/programming/moving-files-using-java/3600.html

DOS batch to move files of certain size www.computing.net/answers/programming/dos-batch-to-move-files-of-certain-size/20194.html