It is currently Mon Sep 24, 2018 7:13 am

All times are UTC - 7 hours [ DST ]

Recent News:



Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Mon Mar 29, 2010 1:59 pm 
Offline
2.0TB storage
2.0TB storage

Joined: Wed Oct 28, 2009 12:39 pm
Posts: 103
Thanks: 9
Thanked: 1 time in 1 post
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.

_________________
My HP Proliant ML110 G6 WHS2011 Server
My Clarkdale HTPC build thread


Top
 Profile  
Thanks  

Attention Guest: Remove this ad by Registering with the MediaSmartServer.net Forums. It's Free!
PostPosted: Mon Mar 29, 2010 3:51 pm 
Offline
Newbie
Newbie

Joined: Tue Jul 21, 2009 5:53 pm
Posts: 1
Thanks: 0
Thanked: 0 time in 0 post
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.


Top
 Profile  
Thanks  
PostPosted: Tue Mar 30, 2010 8:47 am 
Offline
2.0TB storage
2.0TB storage

Joined: Wed Oct 28, 2009 12:39 pm
Posts: 103
Thanks: 9
Thanked: 1 time in 1 post
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.

_________________
My HP Proliant ML110 G6 WHS2011 Server
My Clarkdale HTPC build thread


Top
 Profile  
Thanks  
PostPosted: Wed Mar 31, 2010 9:01 am 
Offline
1TB storage
1TB storage

Joined: Fri Mar 19, 2010 9:44 am
Posts: 32
Thanks: 3
Thanked: 1 time in 1 post
+1 for synctoy, use it all the time.

Dave


Top
 Profile  
Thanks  
PostPosted: Wed Mar 31, 2010 9:51 am 
Offline
Newbie
Newbie

Joined: Wed Mar 31, 2010 9:44 am
Posts: 1
Thanks: 0
Thanked: 0 time in 0 post
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.


Top
 Profile  
Thanks  
PostPosted: Wed Mar 31, 2010 1:41 pm 
Offline
1.5TB storage
1.5TB storage

Joined: Wed Dec 02, 2009 2:47 pm
Posts: 79
Location: Pittsburgh, PA
Thanks: 15
Thanked: 1 time in 1 post
I use Second Copy and it works great! check it out at secondcopy.com

_________________
HP EX495

Image Image


Top
 Profile  
Thanks  
PostPosted: Sat Apr 03, 2010 11:41 am 
Offline
3.0TB storage
3.0TB storage

Joined: Thu Aug 06, 2009 8:38 pm
Posts: 411
Location: Central California
Thanks: 2
Thanked: 24 times in 22 posts
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.

_________________
Current DIY server DL380 G6 2xquad core 2.8ghz 32GB rdimm ram 512mb 2xHP 410 raid with 2x sas expanders (2 X norco RPC-4220) 48 slots stacked with room to grow.
30TB (Movie/File/Music)Win 2012 essentials 64bit Storage spaces
Ex490 E6400 4gb ram


Top
 Profile  
Thanks  
PostPosted: Tue Aug 09, 2016 10:49 pm 
Offline
Newbie
Newbie

Joined: Tue Aug 09, 2016 10:47 pm
Posts: 1
Thanks: 0
Thanked: 0 time in 0 post
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


Top
 Profile  
Thanks  
PostPosted: Wed Aug 10, 2016 7:18 am 
Offline
Max Contributor
Max Contributor
User avatar

Joined: Sat Apr 12, 2008 12:49 pm
Posts: 2200
Location: Casper Wyoming
Thanks: 75
Thanked: 247 times in 244 posts
I have to second "SyncToy" it's easy to setup to be automatic.
Good Luck

_________________
[X510 CPU/RAM/All 2 TB Red's] [X510 CPU/Sync'ed Backup/All 2 TB Hitachi's]
[X510 /2 in box]
[X710 LIAN LI DIY W2012E] Stablebit Drivepool [EX-503 LIAN LI 5-bay USB3 External]
:twisted: Fear the Cloud :twisted:


Top
 Profile  
Thanks  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 7 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group