Search found 14 matches

by LordNecro
18 Apr 2012 09:05
Forum: DOS Batch Forum
Topic: Rename file based on folder name and copy to:
Replies: 24
Views: 10276

Re: Rename file based on folder name and copy to:

That's it! awesome man, you just made me a very happy person. Thank you so much.
by LordNecro
18 Apr 2012 08:49
Forum: DOS Batch Forum
Topic: Rename file based on folder name and copy to:
Replies: 24
Views: 10276

Re: Rename file based on folder name and copy to:

yeah, running it out of he movies folder.

returned with a

Code: Select all

File Not Found
Press any key to continue . . .
by LordNecro
18 Apr 2012 08:26
Forum: DOS Batch Forum
Topic: Rename file based on folder name and copy to:
Replies: 24
Views: 10276

Re: Rename file based on folder name and copy to:

@echo off for /f "delims=" %%a in ('dir folder.JPG /b /s') do ( for /f "delims=" %%b in ("%%~dpa\.") do ( attrib -h "%%a" copy /b "%%a" "C:\xampp\htdocs\project-T\lists\movies\%%~nxb.JPG" attrib +h "%%a" ) ) pause its not that it...
by LordNecro
18 Apr 2012 08:01
Forum: DOS Batch Forum
Topic: Rename file based on folder name and copy to:
Replies: 24
Views: 10276

Re: Rename file based on folder name and copy to:

C:\Users\Necro>attrib "J:\Movies\12 Monkeys (1995)\folder.jpg" H J:\Movies\12 Monkeys (1995)\folder.jpg thats the attrib command. i'm not sure what happened earlier, im pretty sure it removed the originals, because i have system files and hidden files visible.
by LordNecro
18 Apr 2012 07:08
Forum: DOS Batch Forum
Topic: Rename file based on folder name and copy to:
Replies: 24
Views: 10276

Re: Rename file based on folder name and copy to:

the files do not have a system attribute, and while running @echo off for /f "delims=" %%a in ('dir folder.JPG /b /s') do ( for /f "delims=" %%b in ("%%~dpa\.") do ( attrib -h -s "%%a" copy /b "%%a" "C:\xampp\htdocs\project-T\lists\movies\%%~nxb...
by LordNecro
18 Apr 2012 05:56
Forum: DOS Batch Forum
Topic: Rename file based on folder name and copy to:
Replies: 24
Views: 10276

Re: Rename file based on folder name and copy to:

i'm getting a file not found, as it cannot find the folder.jpg
by LordNecro
18 Apr 2012 05:39
Forum: DOS Batch Forum
Topic: Rename file based on folder name and copy to:
Replies: 24
Views: 10276

Re: Rename file based on folder name and copy to:

I've discovered it, all of the folder.jpg's are marked as hidden files, how would I go about ignoring such a property?

or possibly a script to make all movie folders un/hidden recurring to all files
by LordNecro
18 Apr 2012 05:38
Forum: DOS Batch Forum
Topic: Rename file based on folder name and copy to:
Replies: 24
Views: 10276

Re: Rename file based on folder name and copy to:

I've discovered it, all of the folder.jpg's are marked as hidden files, how would I go about ignoring such a property?
by LordNecro
18 Apr 2012 05:21
Forum: DOS Batch Forum
Topic: Rename file based on folder name and copy to:
Replies: 24
Views: 10276

Re: Rename file based on folder name and copy to:

So I tried adopting this script to work on the .jpg files that are in each folder and yet it doesnt pick them all up. @echo off for /f "delims=" %%a in ('dir folder.JPG /b /s') do ( for /f "delims=" %%b in ("%%~dpa\.") do ( echo copy "%%a" "C:\xampp\htdoc...
by LordNecro
18 Apr 2012 04:33
Forum: DOS Batch Forum
Topic: Rename file based on folder name and copy to:
Replies: 24
Views: 10276

Re: Rename file based on folder name and copy to:

Thank you so much foxidrive, life saver.
by LordNecro
18 Apr 2012 04:29
Forum: DOS Batch Forum
Topic: Rename file based on folder name and copy to:
Replies: 24
Views: 10276

Re: Rename file based on folder name and copy to:

yup, i realized that just then before you replied. me slaps forehead. :oops:
by LordNecro
18 Apr 2012 04:24
Forum: DOS Batch Forum
Topic: Rename file based on folder name and copy to:
Replies: 24
Views: 10276

Re: Rename file based on folder name and copy to:

yeah, i left it in to see what it displays and it shows. copy "J:\Movies\Venom (2005)\mymovies.xml" "C:\folder\Venom (2005).xml" copy "J:\Movies\Warrior's Way, The (2010)\mymovies.xml" "C:\folder\Warrior's Way, The (2010).xml" copy "J:\Movies\Weekend at B...
by LordNecro
18 Apr 2012 04:15
Forum: DOS Batch Forum
Topic: Rename file based on folder name and copy to:
Replies: 24
Views: 10276

Re: Rename file based on folder name and copy to:

from the echo statement, it appears to do what I want, but it is not creating the copies in C:\folder\

any ideas?

thanks alot too man, its awesome how fast and accurate you were in responding.
by LordNecro
18 Apr 2012 03:09
Forum: DOS Batch Forum
Topic: Rename file based on folder name and copy to:
Replies: 24
Views: 10276

Rename file based on folder name and copy to:

Hey guys, ive been spending hours trying to write a script: This script will sit in my hard drive, next to my movies folder(which has hundreds of movie folders inside of it), each movie folder is named with YAMMM, my multimedia software and provided with a .xml file with the movies information. I wa...