Tony Giangreco
asked on
Robocopy log problem
I'm testing a very basic robocopy script that copied all txt files from drive f to drive x on the same server. i'm logged in as administrator, created the script, saved it as a cmd file.
If I run it with the log file, it erors out. if I run it without the log it works. This should be simple, but I can't get past it. I even created a new share for it to right the log into, but that failed with the same message. I've tried upper and lower case.
Latest version that worked without log file
robocopy.exe f:\ x:\ *.txt /E /SEC /NP /COPYALL /Log=robolog.txt
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.
C:\xcopy-logs>robocopy.exe f:\ x:\ *.txt /E /SEC /NP /COPYALL /Log=robolog.txt
-------------------------- ---------- ---------- ---------- ---------- ---------- ---
ROBOCOPY :: Robust File Copy for Windows :: Version XP010
-------------------------- ---------- ---------- ---------- ---------- ---------- ---
Started : Sun Apr 24 10:24:52 2011
Source - f:\
Dest - x:\
Files : *.txt
Options : /S /E /COPYALL /NP /R:1000000 /W:30
-------------------------- ---------- ---------- ---------- ---------- ---------- --
ERROR : Invalid Parameter #8 : "/Log=robolog.txt"
Simple Usage :: ROBOCOPY source destination /MIR
source :: Source Directory (drive:\path or \\server\share\path).
destination :: Destination Dir (drive:\path or \\server\share\path).
/MIR :: Mirror a complete directory tree.
For more usage information run ROBOCOPY /? or read Robocopy.Doc.
NOTE: Read "True Replication" in Robocopy.Doc prior to first use of /MIR !
**** /MIR can DELETE files as well as copy them !
C:\xcopy-logs>
Test w/o the log file
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.
C:\xcopy-logs>robo1.cmd
C:\xcopy-logs>robocopy.exe f:\ x:\ *.txt /E /SEC /NP /COPYALL
-------------------------- ---------- ---------- ---------- ---------- ---------- ---
ROBOCOPY :: Robust File Copy for Windows :: Version XP010
-------------------------- ---------- ---------- ---------- ---------- ---------- ---
Started : Sun Apr 24 10:18:25 2011
Source : f:\
Dest : x:\
Files : *.txt
Options : /S /E /COPYALL /NP /R:1000000 /W:30
-------------------------- ---------- ---------- ---------- ---------- ---------- --
1 f:\
*EXTRA Dir -1 x:\IMG000823\
*EXTRA Dir -1 x:\IMG000824\
*EXTRA Dir -1 x:\IMG000825\
*EXTRA Dir -1 x:\IMG000826\
*EXTRA Dir -1 x:\IMG000827\
*EXTRA Dir -1 x:\IMG000828\
*EXTRA Dir -1 x:\IMG000829\
*EXTRA Dir -1 x:\IMG000830\
*EXTRA Dir -1 x:\IMG000831\
New File 14 robotest.txt
4 f:\IMG000833\
0 f:\IMG000833\vdb_2011_04_2 0_2102_08\
4 f:\IMG000834\
0 f:\IMG000834\vdb_2011_04_2 1_1749_09\
4 f:\IMG000835\
0 f:\IMG000835\vdb_2011_04_2 2_1912_37\
4 f:\IMG000836\
0 f:\IMG000836\vdb_2011_04_2 3_1833_24\
0 f:\Jan-2011\
0 f:\RECYCLER\
0 f:\RECYCLER\S-1-5-21-12781 63717-1751 908949-123 7765062-50 0\
*EXTRA Dir -1 x:\RECYCLER\S-1-5-21-12781 63717-1751 908949-123 7765062-50 0\Dx1\
*EXTRA Dir -1 x:\RECYCLER\S-1-5-21-12781 63717-1751 908949-123 7765062-50 0\Dx2\
0 f:\System Volume Information\
0 f:\VERITAS\
0 f:\VERITAS\B2D\
-------------------------- ---------- ---------- ---------- ---------- ---------- --
Total Copied Skipped Mismatch FAILED Extras
Dirs : 15 0 15 0 0 11
Files : 17 1 16 0 0 0
Bytes : 1.22 m 14 1.22 m 0 0 0
Times : 0:00:00 0:00:00 0:00:00 0:00:00
Ended : Sun Apr 24 10:18:25 2011
C:\xcopy-logs>
If I run it with the log file, it erors out. if I run it without the log it works. This should be simple, but I can't get past it. I even created a new share for it to right the log into, but that failed with the same message. I've tried upper and lower case.
Latest version that worked without log file
robocopy.exe f:\ x:\ *.txt /E /SEC /NP /COPYALL /Log=robolog.txt
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.
C:\xcopy-logs>robocopy.exe
--------------------------
ROBOCOPY :: Robust File Copy for Windows :: Version XP010
--------------------------
Started : Sun Apr 24 10:24:52 2011
Source - f:\
Dest - x:\
Files : *.txt
Options : /S /E /COPYALL /NP /R:1000000 /W:30
--------------------------
ERROR : Invalid Parameter #8 : "/Log=robolog.txt"
Simple Usage :: ROBOCOPY source destination /MIR
source :: Source Directory (drive:\path or \\server\share\path).
destination :: Destination Dir (drive:\path or \\server\share\path).
/MIR :: Mirror a complete directory tree.
For more usage information run ROBOCOPY /? or read Robocopy.Doc.
NOTE: Read "True Replication" in Robocopy.Doc prior to first use of /MIR !
**** /MIR can DELETE files as well as copy them !
C:\xcopy-logs>
Test w/o the log file
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.
C:\xcopy-logs>robo1.cmd
C:\xcopy-logs>robocopy.exe
--------------------------
ROBOCOPY :: Robust File Copy for Windows :: Version XP010
--------------------------
Started : Sun Apr 24 10:18:25 2011
Source : f:\
Dest : x:\
Files : *.txt
Options : /S /E /COPYALL /NP /R:1000000 /W:30
--------------------------
1 f:\
*EXTRA Dir -1 x:\IMG000823\
*EXTRA Dir -1 x:\IMG000824\
*EXTRA Dir -1 x:\IMG000825\
*EXTRA Dir -1 x:\IMG000826\
*EXTRA Dir -1 x:\IMG000827\
*EXTRA Dir -1 x:\IMG000828\
*EXTRA Dir -1 x:\IMG000829\
*EXTRA Dir -1 x:\IMG000830\
*EXTRA Dir -1 x:\IMG000831\
New File 14 robotest.txt
4 f:\IMG000833\
0 f:\IMG000833\vdb_2011_04_2
4 f:\IMG000834\
0 f:\IMG000834\vdb_2011_04_2
4 f:\IMG000835\
0 f:\IMG000835\vdb_2011_04_2
4 f:\IMG000836\
0 f:\IMG000836\vdb_2011_04_2
0 f:\Jan-2011\
0 f:\RECYCLER\
0 f:\RECYCLER\S-1-5-21-12781
*EXTRA Dir -1 x:\RECYCLER\S-1-5-21-12781
*EXTRA Dir -1 x:\RECYCLER\S-1-5-21-12781
0 f:\System Volume Information\
0 f:\VERITAS\
0 f:\VERITAS\B2D\
--------------------------
Total Copied Skipped Mismatch FAILED Extras
Dirs : 15 0 15 0 0 11
Files : 17 1 16 0 0 0
Bytes : 1.22 m 14 1.22 m 0 0 0
Times : 0:00:00 0:00:00 0:00:00 0:00:00
Ended : Sun Apr 24 10:18:25 2011
C:\xcopy-logs>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER