Search found 6 matches

by Boggie1688
03 Dec 2009 16:05
Forum: DOS Batch Forum
Topic: Bat: Move/MD/Find Carrying Multiple Variables from Txt File
Replies: 10
Views: 10537

I've never heard of that command. But I'll give it a try.

I'm in the middle of finals, but when its over I'll be back on the horse.
by Boggie1688
27 Nov 2009 15:31
Forum: DOS Batch Forum
Topic: Bat: Move/MD/Find Carrying Multiple Variables from Txt File
Replies: 10
Views: 10537

Hey Avery, Sorry for the late reply was quiet busy yesterday. I understood quite a bit of your code after fiddling around with it for a few days. Your pretty slick at it. I honestly have the feeling now that what I want to do might not be possible with a batch file. Your suggestion of creating a sor...
by Boggie1688
23 Nov 2009 15:49
Forum: DOS Batch Forum
Topic: Bat: Move/MD/Find Carrying Multiple Variables from Txt File
Replies: 10
Views: 10537

Here is the final code @echo off set "sourcedir=C:\Test\unsorted" set "destdir=C:\Test\tv_shows" for /f %%a in (tv.txt) do ( for /f %%b in ('dir /s /b "%sourcedir%\*%%a*"') do ( for /f %%c in ('find "*S*.*" "%%b"') do call :process "%%b" &q...
by Boggie1688
23 Nov 2009 12:39
Forum: DOS Batch Forum
Topic: Bat: Move/MD/Find Carrying Multiple Variables from Txt File
Replies: 10
Views: 10537

Err.. I messed up my explanation of the destination directory. I'm looking to do C:Unsorted/House/S01E02.mkv C:Unsorted/House/S02E02.mkv C:Unsorted/Stargate/S01E02.mkv C:Unsorted/Stargate/S01E01.mkv to C:Sorted/House/Season 1/S01E02.mkv C:Sorted/House/Season 2/S02E02.mkv C:Sorted/Stargate/Season 1/S...
by Boggie1688
23 Nov 2009 12:13
Forum: DOS Batch Forum
Topic: Bat: Move/MD/Find Carrying Multiple Variables from Txt File
Replies: 10
Views: 10537

Wow thanks for the reply. Ok I just want to go over your code so I can understand it well enough to work on it. I would really appreciate it. for /f %%a in (search.txt) do ( for /f %%b in ('dir /s /b /a-d "%sourcedir%\*.%%a"') do call :process "%%b" ) Is %%a a variable for each l...
by Boggie1688
23 Nov 2009 05:30
Forum: DOS Batch Forum
Topic: Bat: Move/MD/Find Carrying Multiple Variables from Txt File
Replies: 10
Views: 10537

Bat: Move/MD/Find Carrying Multiple Variables from Txt File

Hi, I'm really new to batch commands so bare with me. I have a server that I downloads multiple directories to one directory. I want to create a batch file search the directory using a given set of directory names. I'd like to call this bat, search.bat. Next I need to sort the files found in each di...