|
Answer» xcopy "c:\users\dave\application data\runic games\*.*" c:\games_backup\*.* /s/d/y
Using this instruction above to try to create a backup of saved game location that is in my profile to c:\games_backup\
This batch should be grabbing the next folder named Torchlight with all of its contents and passing it to c:\games_backup\ if it doesnt exist at c:\games_backup\ and for future executions of this batch it should update files with those with latest date/time stamp.
The problem I am having is that it seems as though Windows 7 is NOT looking at the Wild Card *.* for all files and folders, and is accepting *.* as a file name???
C:\04_2011>xcopy "c:\users\dave\application data\runic games\*.*" c:\games_backu p\*.* /s/d/y File not FOUND - *.* 0 File(s) copied
C:\04_2011>
Any suggestions to get this working?The target should be a directory, not a file specification.Problem is that you cant dump the *.* and leave it as:
xcopy "c:\users\dave\application data\runic games\" c:\games_backup\ /s/d/y
And even if no files exist at \runic games\... there is a folder named Torchlight 1 level deeper in the path with other files and folders contained within it at ( c:\users\dave\application data\runic games\torchlight\ ) so the /s switch should be grabbing that Torchlight folder from starting point of \runic games\ sub-directory location and copying it to c:\games_backup\torchlight\...
I have been using this xcopy c:\path_starting_point_to_xcopy_from\*.* c:\Backup\*.* /s/d/y routine for years with prior windows versions before Win 7 and had no problems.
If *.* shouldn't be used, how do you achieve this xcopy of ALL contents both Files & Folders from the starting path to the destination path? Looks like a bunch of others having issues with xcopy and Win 7 through my hunt for a solution on google. Just found out that Robocopy is built into Windows 7 which is suppose to be the replacement for older xcopy.
Now to learn robocopy ... below is the Robocopy /? info that I >> out to file so I could copy/paste it here.
Thinking I should have stuck with Win XP Pro vs Win 7 since this is just 1 of many issues that have come up with my computer usage and old apps, code, and instructions.
Code: [Select]------------------------------------------------------------------------------- ROBOCOPY :: Robust File Copy for Windows -------------------------------------------------------------------------------
Started : Thu Apr 07 00:03:27 2011
Usage :: ROBOCOPY source destination [file [file]...] [options]
source :: Source Directory (drive:\path or \\server\share\path). destination :: Destination Dir (drive:\path or \\server\share\path). file :: File(s) to copy (names/wildcards: default is "*.*").
:: :: Copy options : :: /S :: copy Subdirectories, but not empty ones. /E :: copy subdirectories, including Empty ones. /LEV:n :: only copy the top n LEVels of the source directory tree.
/Z :: copy files in restartable mode. /B :: copy files in Backup mode. /ZB :: use restartable mode; if access denied use Backup mode. /EFSRAW :: copy all encrypted files in EFS RAW mode.
/COPY:copyflag[s] :: what to COPY for files (default is /COPY:DAT). (copyflags : D=Data, A=Attributes, T=Timestamps). (S=Security=NTFS ACLs, O=Owner info, U=aUditing info).
/DCOPY:T :: COPY Directory Timestamps.
/SEC :: copy files with SECurity (equivalent to /COPY:DATS). /COPYALL :: COPY ALL file info (equivalent to /COPY:DATSOU). /NOCOPY :: COPY NO file info (useful with /PURGE).
/SECFIX :: FIX file SECurity on all files, even skipped files. /TIMFIX :: FIX file TIMes on all files, even skipped files.
/PURGE :: delete dest files/dirs that no longer exist in source. /MIR :: MIRror a directory tree (equivalent to /E plus /PURGE).
/MOV :: MOVe files (delete from source after copying). /MOVE :: MOVE files AND dirs (delete from source after copying).
/A+:[RASHCNET] :: add the given Attributes to copied files. /A-:[RASHCNET] :: remove the given Attributes from copied files.
/CREATE :: CREATE directory tree and zero-length files only. /FAT :: create destination files using 8.3 FAT file names only. /256 :: turn off very long path (> 256 characters) support.
/MON:n :: MONitor source; run again when more than n changes seen. /MOT:m :: MOnitor source; run again in m minutes Time, if changed.
/RH:hhmm-hhmm :: Run Hours - times when new copies may be started. /PF :: check run hours on a Per File (not per pass) basis.
/IPG:n :: Inter-Packet Gap (ms), to free bandwidth on slow lines.
/SL :: copy symbolic links versus the target.
/MT[:n] :: Do multi-threaded copies with n threads (default 8). n must be at least 1 and not greater than 128. This option is incompatible with the /IPG and /EFSRAW options. Redirect output using /LOG option for better performance.
:: :: File Selection Options : :: /A :: copy only files with the Archive attribute set. /M :: copy only files with the Archive attribute and reset it. /IA:[RASHCNETO] :: Include only files with any of the given Attributes set. /XA:[RASHCNETO] :: eXclude files with any of the given Attributes set.
/XF file [file]... :: eXclude Files matching given names/paths/wildcards. /XD dirs [dirs]... :: eXclude Directories matching given names/paths.
/XC :: eXclude Changed files. /XN :: eXclude Newer files. /XO :: eXclude Older files. /XX :: eXclude eXtra files and directories. /XL :: eXclude LONELY files and directories. /IS :: Include Same files. /IT :: Include Tweaked files.
/MAX:n :: MAXimum file size - exclude files bigger than n bytes. /MIN:n :: MINimum file size - exclude files smaller than n bytes.
/MAXAGE:n :: MAXimum file AGE - exclude files older than n days/date. /MINAGE:n :: MINimum file AGE - exclude files newer than n days/date. /MAXLAD:n :: MAXimum Last Access Date - exclude files unused since n. /MINLAD:n :: MINimum Last Access Date - exclude files used since n. (If n < 1900 then n = n days, else n = YYYYMMDD date).
/XJ :: eXclude Junction points. (normally included by default).
/FFT :: assume FAT File Times (2-second granularity). /DST :: compensate for one-hour DST time differences.
/XJD :: eXclude Junction points for Directories. /XJF :: eXclude Junction points for Files.
:: :: Retry Options : :: /R:n :: number of Retries on failed copies: default 1 million. /W:n :: WAIT time between retries: default is 30 seconds.
/REG :: Save /R:n and /W:n in the Registry as default settings.
/TBD :: wait for sharenames To Be Defined (retry error 67).
:: :: Logging Options : :: /L :: List only - don't copy, timestamp or delete any files. /X :: report all eXtra files, not just those selected. /V :: produce Verbose output, showing skipped files. /TS :: include source file Time Stamps in the output. /FP :: include Full Pathname of files in the output. /BYTES :: Print sizes as bytes.
/NS :: No Size - don't log file sizes. /NC :: No Class - don't log file classes. /NFL :: No File List - don't log file names. /NDL :: No Directory List - don't log directory names.
/NP :: No Progress - don't display percentage copied. /ETA :: show Estimated Time of Arrival of copied files.
/LOG:file :: output status to LOG file (overwrite existing log). /LOG+:file :: output status to LOG file (append to existing log).
/UNILOG:file :: output status to LOG file as UNICODE (overwrite existing log). /UNILOG+:file :: output status to LOG file as UNICODE (append to existing log).
/TEE :: output to console window, as well as the log file.
/NJH :: No Job Header. /NJS :: No Job Summary.
/UNICODE :: output status as UNICODE.
:: :: Job Options : :: /JOB:jobname :: take parameters from the named JOB file. /SAVE:jobname :: SAVE parameters to the named job file /QUIT :: QUIT after processing command line (to view parameters). /NOSD :: NO Source Directory is specified. /NODD :: NO Destination Directory is specified. /IF :: Include the following Files.Code: [Select]robocopy "c:\users\dave\application data\runic games" c:\games_backup /E /ISWas the fix for this issue I guess ... I guess farewell XCOPY with Windows 7 ... Now I have to use ROBOCOPY
Here is what robocopy spits out to SCREEN as it executed my batch:
Quote C:\04_2011>robocopy "c:\users\dave\application data\runic games" c:\games_backup /E /IS
------------------------------------------------------------------------------- ROBOCOPY :: Robust File Copy for Windows -------------------------------------------------------------------------------
Started : Thu Apr 07 00:31:45 2011
Source : c:\users\dave\application data\runic games\ Dest : c:\games_backup\
Files : *.* Options : *.* /S /E /COPY:DAT /IS /R:1000000 /W:30
------------------------------------------------------------------------------
1c:\users\dave\application data\runic games\ New File 335641pinglogger.txt 0% 39% 78% 100% New Dir 9c:\users\dave\application data\runic games\torchlight\ New File 1324EditorSettings.dat 0% 100% New File 7.7 mmassfile.dat 0.0% 6.4% 12.8% 19.3% 25.7% 32.2% 38.6% 45.1% 51.5% 57.9% 64.4% 70.8% 77.3% 83.7% 90.2% 96.6% 100% New File 2.8 mmassfile.dat.ADM 0% 17% 35% 53% 70% 88% 100% New File 10.2 mmasterresourceunits.dat 0.0% 9.7% 19.4% 29.2% 38.9% 48.7% 58.4% 68.2% 77.9% 87.7% 97.4% 100% New File 2.8 mmasterresourceunits.dat.ADM 0% 17% 34% 52% 69% 86% 100% New File 20834Ogre.log 0% 100% New File 904resourceconfig.dat 0% 100% New File 5060settings.txt 0% 100% New File 5726settings_editor.txt 0% 100% New Dir 57c:\users\dave\application data\runic games\torchlight\editorObj\ New File 5120Align.editorObj 0% 100% New File 7680Animation Controller.editorObj 0% 100% New File 8192Box Collision.editorObj 0% 100% New File 8704Button.editorObj 0% 100% New File 8704Camera Controller.editorObj 0% 100% New File 7168Camera Shake.editorObj 0% 100% New File 5120Cinematic.editorObj 0% 100% New File 5120Color.editorObj 0% 100% New File 6144Counter.editorObj 0% 100% New File 13312Damage Shape.editorObj 0% 100% New File 5632Dungeon Object.editorObj 0% 100% New File 15360Emitter.editorObj 0% 100% New File 6144Game State Controller.editorObj 0% 100% New File 9728Generic Model.editorObj 0% 100% New File 5632Geometry Rotator.editorObj 0% 100% New File 4608Gravity Well.editorObj 0% 100% New File 12288Group.editorObj 0% 100% New File 7680Image.editorObj 0% 100% New File 5120Jet.editorObj 0% 100% New File 6656Layout Link Particle.editorObj 0% 100% New File 7168Layout Link Timeline.editorObj 0% 100% New File 6656Layout Link.editorObj 0% 100% New File 6656Light.editorObj 0% 100% New File 5632Line.editorObj 0% 100% New File 6144Linear Force.editorObj 0% 100% New File 3584Logic Group.editorObj 0% 100% New File 15872Missile.editorObj 0% 100% New File 4096Money Taker.editorObj 0% 100% New File 15360Monster.editorObj 0% 100% New File 5120Music.editorObj 0% 100% New File 5120Output Incrementor.editorObj 0% 100% New File 16384Particle.editorObj 0% 100% New File 8704Pathing.editorObj 0% 100% New File 7680Plane Collision.editorObj 0% 100% New File 4608Player Box Trigger.editorObj 0% 100% New File 4608Player Sphere Trigger.editorObj 0% 100% New File 7168Property Node.editorObj 0% 100% New File 4608Puzzle Input.editorObj 0% 100% New File 7168Quest Controller.editorObj 0% 100% New File 6656Random Choice.editorObj 0% 100% New File 8704Room Piece.editorObj 0% 100% New File 5632Scale.editorObj 0% 100% New File 6656Sine Force.editorObj 0% 100% New File 8192Skill Controller.editorObj 0% 100% New File 4608Skip Cutscene.editorObj 0% 100% New File 7168Sound.editorObj 0% 100% New File 7680Sphere Collision.editorObj 0% 100% New File 5120Teleport.editorObj 0% 100% New File 5632Texture Animation.editorObj 0% 100% New File 5632Texture Rotate.editorObj 0% 100% New File 7680Timeline.editorObj 0% 100% New File 5120Timer.editorObj 0% 100% New File 15360Unit Spawner.editorObj 0% 100% New File 8704Unit Trigger.editorObj 0% 100% New File 5120Vortext.editorObj 0% 100% New File 6656Warper.editorObj 0% 100% New File 5120Waypoint Activator.editorObj 0% 100% New Dir 3c:\users\dave\application data\runic games\torchlight\mods\ New File 380mods.dat 0% 100% New File 364mods.dat.ADM 0% 100% New File 260remove_binary.bat 0% 100% New Dir 2c:\users\dave\application data\runic games\torchlight\mods\MyFirstMod\ New File 82mod.dat 0% 100% New File 90mod.dat.adm 0% 100% New Dir 0c:\users\dave\application data\runic games\torchlight\mods\MyFirstMod\media\ New Dir 5c:\users\dave\application data\runic games\torchlight\save\ New File 1961990.SVT 0% 66% 100% New File 374901.svt 0% 100% New File 1265452.svt 0% 100% New File 196715backup.tmp 0% 66% 100% New File 1385sharedstash.bin 0% 100% New Dir 2c:\users\dave\application data\runic games\torchlight\torched\ New File 377132objects.dat 0% 34% 69% 100% New File 139952objects.dat.ADM 0% 93% 100% New Dir 1c:\users\dave\application data\runic games\torchlight\torched\dataeditor\ New File 3134EditorRules.dat 0% 100% New Dir 2c:\users\dave\application data\runic games\torchlight\torched\dataeditor\editorfolder\ New File 0temp.layout 100% New File 0temp.layout.cmp 100%
------------------------------------------------------------------------------
Total Copied Skipped Mismatch FAILED Extras Dirs : 10 9 1 0 0 0 Files : 82 82 0 0 0 0 Bytes : 25.51 m 25.51 m 0 0 0 0 Times : 0:00:00 0:00:00 0:00:00 0:00:00
Speed : 107428116 Bytes/sec. Speed : 6147.086 MegaBytes/min.
Ended : Thu Apr 07 00:31:45 2011
|