MediaSmartServer.net http://www.mediasmartserver.net/forums/ |
|
Help with batch file, xcopy or robocopy http://www.mediasmartserver.net/forums/viewtopic.php?f=1&t=7673 |
Page 1 of 1 |
Author: | hellerbrewing [ Mon Mar 29, 2010 1:59 pm ] |
Post subject: | Help with batch file, xcopy or robocopy |
I am using My Movies to rip my DVDs to MPEG files. After the files are created I transfer them to my main PC over the network and convert to DVR-MS files and then transfer them back. I am wanting to creat a batch file that uses either xcopy or robocopy that would scan my "Y:\videos\movies" (mapped from MSS) folder and move all the files with *.mpg extension to the "D:\ripped" folder. This way I could rip a bunch of movies in the evening and fire off the batch file when I go to bed. Is this all I would need? xcopy Y:\videos\movies\*.mpg D:\ripped I found this: http://www.microsoft.com/resources/docu ... x?mfr=true Should I put in any other parameters? Would I just save this in a text file and change the extension to ".bat"? Could I just run this from the desktop? Sorry for the noob questions, I have never used these features and never created a batch file. |
Author: | aspomwell [ Mon Mar 29, 2010 3:51 pm ] |
Post subject: | Re: Help with batch file, xcopy or robocopy |
I'd suggest using Synctoy: http://www.microsoft.com/downloads/deta ... laylang=en Xcopy doesn't fail that gracefully. Robocopy does a little better, but I like using synctoy a little more. It seems to do a lot. |
Author: | hellerbrewing [ Tue Mar 30, 2010 8:47 am ] |
Post subject: | Re: Help with batch file, xcopy or robocopy |
Thanks for your reply. I had seen synctoy but from glancing over the writeup it did not seem to do what I want. I will install it and give it a shot. |
Author: | dschoemaker [ Wed Mar 31, 2010 9:01 am ] |
Post subject: | Re: Help with batch file, xcopy or robocopy |
+1 for synctoy, use it all the time. Dave |
Author: | SenHu [ Wed Mar 31, 2010 9:51 am ] |
Post subject: | Copying .mpg files nightly with biterscripting |
You can also write your own script. Code: # Script CopyMpg.txt var str list, file cd "Y:\videos\movies" lf -n "*.mpg" > $list while ($list <> "") do lex "1" $list > $file system -s "move" "/Y" ("\""+$file+"\"") "D:\ripped" done Script is in biterscripting. Save the script in file C:/Scripts/CopyMpg.txt, Run it with this command. Code: script "C:/Scripts/CopyMpg.txt" Or, you can schedule to run it nightly to automate the entire process. |
Author: | holty [ Wed Mar 31, 2010 1:41 pm ] |
Post subject: | Re: Help with batch file, xcopy or robocopy |
I use Second Copy and it works great! check it out at secondcopy.com |
Author: | Chasrobin [ Sat Apr 03, 2010 11:41 am ] |
Post subject: | Re: Help with batch file, xcopy or robocopy |
You can get a list of the variables for each of your preferred copiers buy use a /? after their name. i.e. robocopy /? will tell you all of the possabilities. I suggest you use Move rather than copy so you don't overwrite files in process. Once you have your script running well use task scheduler to run it every X hrs/minutes I use this method myself for moving recorded TV programs to my WHS when the media center service fails. but thats another tale. |
Author: | rudenaggar [ Tue Aug 09, 2016 10:49 pm ] |
Post subject: | Re: Help with batch file, xcopy or robocopy |
Robocopy replaces XCopy in the newer versions of windows Uses Mirroring, XCopy does not Has a /RH option to allow a set time for the copy to run Has a /MON:n option to check differences in files Copies over more file attributes than XCopy The most important difference is that robocopy will (usually) retry when an error occurs, while xcopy will not. In most cases, that makes robocopy far more suitable for use in a script. If you have XP or Windows Server you can easily get this in the Resource Kits. If you have Vista, it's already in your path. That's always nice. It's Robust, indeed (hence, Robocopy) but it's legendarily unforgiving. If anything is wrong with the command line options you'll just get the help. It's so hard to use there's even a GUI Frontend you can get. However, when I want to get a directory from here to over there, I just do this (no wildcards allowed! Doh!) and it just gets there, auto skipping files that are already at the destination. It's also wonderful over an unreliable network: robocopy "H:\Source" "z:\Dest" /S /Z Where /s means subdirectories, and /z means in restartable mode. http://net-informations.com/q/mis/robocopy.html Ruden |
Author: | Gardian [ Wed Aug 10, 2016 7:18 am ] |
Post subject: | Re: Help with batch file, xcopy or robocopy |
I have to second "SyncToy" it's easy to setup to be automatic. Good Luck |
Page 1 of 1 | All times are UTC - 7 hours [ DST ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |