It is currently Thu Mar 28, 2024 3:11 pm

All times are UTC - 7 hours [ DST ]

Recent News:



Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: Mon Dec 20, 2010 1:46 pm 
Offline
1.5TB storage
1.5TB storage

Joined: Mon Oct 27, 2008 4:03 pm
Posts: 57
Thanks: 0
Thanked: 0 time in 0 post
I have a bunch of movies that I want to move into indivudual folders. So for example:

\Movies\A Wonderful Life.avi becomes
\Movies\A Wonderful Life\A Wonderful Life.avi

The purpose of this is so I can run my own metadata program and store information in each folder, thus saving me time in case I need to reinstall XBMC (it does not have a working backup feature).

In the past, when the files were on my local PC, I just ran a batch script that a friend wrote. But now, the files are stored exclusively on my WHS. I don't claim to know how the file system in WHS works entirely but I am pretty sure it spans across disks. With that said, is there any way to access the files (for manipulation) via the command prompt?


Top
 Profile  
Thanks  

Attention Guest: Remove this ad by Registering with the MediaSmartServer.net Forums. It's Free!
PostPosted: Mon Dec 20, 2010 1:58 pm 
Offline
Founder
Founder
User avatar

Joined: Tue Jul 31, 2007 11:54 am
Posts: 10735
Location: Fort Collins, Colorado
Thanks: 630
Thanked: 931 times in 885 posts
Damian mentions doing this in his Media Browser write-up in the Prep Work section but doesn't go into specifics:
http://www.mediasmartserver.net/2010/11 ... 2-9-orion/

Are you trying to access the files from your local pc, or on the server?

On the client pc:
\\server\videos\

on the server:
D:\shares\videos\

_________________
Alex Kuretz
Remote Notification: Monitoring and alerting for your Home Server via email, Twitter, text message, RSS, push notifications, and on your Mac desktop
Have you tried our Add-Ins?


Top
 Profile  
Thanks  
PostPosted: Mon Dec 20, 2010 2:04 pm 
Offline
Top Contributor
Top Contributor

Joined: Sat May 17, 2008 10:27 pm
Posts: 704
Location: Round Rock, TX
Thanks: 26
Thanked: 22 times in 22 posts
Just use the UNC format for the directories and you should have no problem. e.g. dir \\myhpwhs\movies will produce a directory listing just as if you were doing it to a folder on your local PC. I believe most of the DOC commands you'll be using support UNC style paths.

_________________
HP MSS EX490, Intel Core 2 Quad Q9300, 1TB System drive, 6TB Storage pool managed by StableBit DrivePool


Top
 Profile  
Thanks  
PostPosted: Mon Dec 20, 2010 3:13 pm 
Offline
1.5TB storage
1.5TB storage

Joined: Mon Oct 27, 2008 4:03 pm
Posts: 57
Thanks: 0
Thanked: 0 time in 0 post
I need the DOS path to be used while I run while I am in a command prompt. Does this look correct?

D:\shares\Videos

Is it safe to manipulate files in this environment? I remember that you should always copy and delete files via the "Shared Folders on Server" link, and not through Windows Explorer, so that makes me nervous to edit them in DOS.


Top
 Profile  
Thanks  
PostPosted: Mon Dec 20, 2010 3:14 pm 
Offline
1.5TB storage
1.5TB storage

Joined: Mon Oct 27, 2008 4:03 pm
Posts: 57
Thanks: 0
Thanked: 0 time in 0 post
TxDot wrote:
Just use the UNC format for the directories and you should have no problem. e.g. dir \\myhpwhs\movies will produce a directory listing just as if you were doing it to a folder on your local PC. I believe most of the DOC commands you'll be using support UNC style paths.


At first I was confused about what you were trying to say but I think you're saying instead of running the script from the WHS itself, why not run it from a client computer and just use the network path? Hmm that's a great idea.


Top
 Profile  
Thanks  
PostPosted: Mon Dec 20, 2010 3:33 pm 
Offline
1.5TB storage
1.5TB storage

Joined: Mon Oct 27, 2008 4:03 pm
Posts: 57
Thanks: 0
Thanked: 0 time in 0 post
Hmm

E:\>cd \\zion\videos\movies
'\\zion\videos\movies'
CMD does not support UNC paths as current directories.


Top
 Profile  
Thanks  
PostPosted: Mon Dec 20, 2010 3:52 pm 
Offline
1TB storage
1TB storage

Joined: Tue Apr 13, 2010 2:01 pm
Posts: 37
Thanks: 0
Thanked: 4 times in 4 posts
You could just map a drive to your share.

i.e. "net use Z: \\zion\videos\movies"

Now "Z:\" is the same as \\zion\videos\movies.

Hope this is what you where looking for....


Top
 Profile  
Thanks  
PostPosted: Mon Dec 20, 2010 4:23 pm 
Offline
Top Contributor
Top Contributor

Joined: Sat May 17, 2008 10:27 pm
Posts: 704
Location: Round Rock, TX
Thanks: 26
Thanked: 22 times in 22 posts
sygyzy wrote:
Hmm

E:\>cd \\zion\videos\movies
'\\zion\videos\movies'
CMD does not support UNC paths as current directories.

You can't CD to a directory like that but you don't need to. Your other option is to mount the directory to an available drive letter but that (to me anyway) is more trouble than it's worth. But to each his own... :beerme: You can use mkdir \\myhpwhs\blah\newdir and then use copy \\myhpwhs\blah\olddir \\myhpwhs\blah\newdir or something like that.

_________________
HP MSS EX490, Intel Core 2 Quad Q9300, 1TB System drive, 6TB Storage pool managed by StableBit DrivePool


Top
 Profile  
Thanks  
PostPosted: Mon Dec 20, 2010 4:48 pm 
Offline
1.5TB storage
1.5TB storage

Joined: Mon Oct 27, 2008 4:03 pm
Posts: 57
Thanks: 0
Thanked: 0 time in 0 post
The mount worked perfectly. I used Z: just like the example. For some reason my script doesn't support spaces. It moved any movies with a single word in the title like "Captivity" but failed on anything with spaces like "Eastern Promises" It also messed up by creating a bunch of empty folders with names from words from movies such as A, An, Edge, etc. I cleaned the empty folders up but can someone help me fix the script to support movies with spaces?

for /f %f in ('Dir /b') do mkdir %~nf & move %f %~nf/%f


Top
 Profile  
Thanks  
PostPosted: Mon Dec 20, 2010 4:55 pm 
Offline
1.5TB storage
1.5TB storage

Joined: Mon Oct 27, 2008 4:03 pm
Posts: 57
Thanks: 0
Thanked: 0 time in 0 post
I may have find a .NET program that does exactly what I need.

Edit: Yup, FiletoFolder worked exactly as described. Thanks to everyone for their help.


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

All times are UTC - 7 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 15 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