Thursday, June 19, 2014

Stats and More

I was up until a little past midnight working on a DOS batch file to give myself an update on the files and folders that exist on the MyCloud drive. I have multiple partitions and now I have DIR commands to tell me information about the files / folders on each partition in a single batch file. The code is below, more for my future reference than anything else, but before I get to that, here's something interesting. The first file that was created by the code below has a date stamp of 12:10 AM and the final file that was created has a date stamp of 5:03 AM. This means that I will need to *not* expect to run this specific batch file and expect a quick response. What I may do is split it up into multiple files and then have a master batch file that will run individual drives. I haven't designed that yet so I have no further details about that.

My count for today is: 52339 File(s), but that number is somewhat misleading when I think about the cleaning up that needs to be done. Specifically, here's a random folder. The files in bold are duplicates and need to be removed.

Directory of y:\music_shell\Music_reconversion\NineDollarMelonBaller\I'll Give You Something To Cry About

06/11/2014  09:16 PM    <DIR>          .
04/13/2014  10:32 AM    <DIR>          ..
12/07/2013  12:50 PM         4,111,513 01 Fry the Bastard Tuna.mp3
12/07/2013  12:50 PM         4,111,513 01-Fry the Bastard Tuna-NineDollarMelonBaller-I'll Give You Something To Cry About.mp3
12/07/2013  12:50 PM         3,367,168 02 Zen Book of Lyrics.mp3
12/07/2013  12:50 PM         3,367,168 02-Zen Book of Lyrics-NineDollarMelonBaller-I'll Give You Something To Cry About.mp3
12/07/2013  12:51 PM         3,432,637 03 Ex.mp3
12/07/2013  12:51 PM         3,432,637 03-Ex-NineDollarMelonBaller-I'll Give You Something To Cry About.mp3
12/07/2013  12:51 PM         5,988,847 04 Third Wheel.mp3
12/07/2013  12:51 PM         5,988,847 04-Third Wheel-NineDollarMelonBaller-I'll Give You Something To Cry About.mp3
12/07/2013  12:52 PM         5,339,995 05 One Bedroom Apartment.mp3
01/24/2014  12:29 PM         5,339,995 05-One Bedroom Apartment-NineDollarMelonBaller-I'll Give You Something To Cry About.mp3
12/07/2013  12:52 PM         5,623,138 06 His Evidence.mp3
01/24/2014  12:29 PM         5,623,138 06-His Evidence-NineDollarMelonBaller-I'll Give You Something To Cry About.mp3
12/07/2013  12:53 PM         3,815,026 07 Paperthin.mp3
01/24/2014  12:29 PM         3,815,026 07-Paperthin-NineDollarMelonBaller-I'll Give You Something To Cry About.mp3
12/07/2013  12:53 PM         3,968,065 08 Underwear.mp3
01/24/2014  12:29 PM         3,968,065 08-Underwear-NineDollarMelonBaller-I'll Give You Something To Cry About.mp3
12/07/2013  12:53 PM         4,480,141 09 Celery Cap.mp3
01/24/2014  12:29 PM         4,480,141 09-Celery Cap-NineDollarMelonBaller-I'll Give You Something To Cry About.mp3
12/07/2013  12:53 PM         7,686,871 10 Hyde.mp3
01/24/2014  12:30 PM         7,686,871 10-Hyde-NineDollarMelonBaller-I'll Give You Something To Cry About.mp3
12/22/2013  12:35 PM            12,745 AlbumArt_{00000000-0000-0000-0000-000000000000}_Large.jpg
12/22/2013  12:35 PM             3,011 AlbumArt_{00000000-0000-0000-0000-000000000000}_Small.jpg
12/22/2013  12:35 PM             3,011 AlbumArtSmall.jpg
12/28/2013  12:54 PM                43 desktop.ini
12/22/2013  12:35 PM            12,745 Folder.jpg
              25 File(s)     95,658,357 bytes


DOS Batch Code

REM | 20131230
REM | Create date folder
cd\
e:
cd e:\music_shell
cd e:\music_shell\(_______Date
SET Today=%Date:~10,4%_%Date:~7,2%_%Date:~4,2%
mkdir %today%
REM | Begin commands for the entire music_shell folder
cd\
e:
cd music_shell
dir e:\music_shell\*.flv *.mp4 *.web* /s /od >e:\music_shell\(_______Date\%today%\videofiles_music_shell_2TB.txt
dir e:\music_shell\*___* *-* *_* *___* *--* /s /od >e:\music_shell\(_______Date\%today%\needtofix_music_shell_2TB.txt
dir e:\music_shell\a* b* c* d* e* f* g* h* i* j* k* l* m* n* o* p* q* r* s* t* u* v* w* x* y* z* >e:\music_shell\(_______Date\%today%\allfolders_music_shell_2TB.txt
dir e:\music_shell\*.mp3 *.wav *.wma /s /od>e:\music_shell\(_______Date\%today%\mostrecentcount_music_shell_2TB.txt
REM | Begin commands for the music_reconversion folder
cd\
e:
cd music_shell\Music_reconversion
dir e:\music_shell\Music_reconversion\*.mp3 *.wav *.wma /s /od>e:\music_shell\(_______Date\%today%\mostrecentcount_Music_reconversion_2TB.txt
dir e:\music_shell\Music_reconversion\*.flv *.mp4 *.web* /s /od>e:\music_shell\(_______Date\%today%\videofiles_Music_reconversion_2TB.txt
dir e:\music_shell\Music_reconversion\*___* *-* *_* *___* *--* /s /od >e:\music_shell\(_______Date\%today%\needtofix_Music_reconversion_2TB.txt
dir e:\music_shell\Music_reconversion\a* b* c* d* e* f* g* h* i* j* k* l* m* n* o* p* q* r* s* t* u* v* w* x* y* z* >e:\music_shell\(_______Date\%today%\allfolders_Music_reconversion_2TB.txt
REM | Begin commands for the music_youtube folder
cd\
e:
cd music_shell\music_youtube
dir e:\music_shell\music_youtube\*.mp3 *.wav *.wma /s /od>e:\music_shell\(_______Date\%today%\mostrecentcount_music_youtube_2TB.txt
dir e:\music_shell\music_youtube\*.flv *.mp4 *.web* /s /od >e:\music_shell\(_______Date\%today%\videofiles_music_youtube_2TB.txt
dir e:\music_shell\music_youtube\*___* *-* *_* *___* *--* /s /od >e:\music_shell\(_______Date\%today%\needtofix_music_youtube_2TB.txt
dir e:\music_shell\music_youtube\a* b* c* d* e* f* g* h* i* j* k* l* m* n* o* p* q* r* s* t* u* v* w* x* y* z* >e:\music_shell\(_______Date\%today%\music_youtube\allfolders_music_youtube_2TB.txt
REM | 20131230
REM | Create date folder
cd\
f:
cd f:\music_shell
cd f:\music_shell\(_______Date
SET Today=%Date:~10,4%_%Date:~7,2%_%Date:~4,2%
mkdir %today%
REM | Begin commands for the entire music_shell folder
cd\
f:
cd music_shell
dir F:\music_shell\*.flv *.mp4 *.web* /s /od >f:\music_shell\(_______Date\%today%\videofiles_music_shell_2TB.txt
dir F:\music_shell\*___* *-* *_* *___* *--* /s /od >f:\music_shell\(_______Date\%today%\needtofix_music_shell_2TB.txt
dir F:\music_shell\a* b* c* d* e* f* g* h* i* j* k* l* m* n* o* p* q* r* s* t* u* v* w* x* y* z* >f:\music_shell\(_______Date\%today%\allfolders_music_shell_2TB.txt
dir F:\music_shell\*.mp3 *.wav *.wma /s /od>f:\music_shell\(_______Date\%today%\mostrecentcount_music_shell_2TB.txt
REM | Begin commands for the music_reconversion folder
cd\
f:
cd music_shell\Music_reconversion
dir f:\music_shell\Music_reconversion\*.mp3 *.wav *.wma /s /od>f:\music_shell\(_______Date\%today%\mostrecentcount_Music_reconversion_2TB.txt
dir f:\music_shell\Music_reconversion\*.flv *.mp4 *.web* /s /od>f:\music_shell\(_______Date\%today%\videofiles_Music_reconversion_2TB.txt
dir f:\music_shell\Music_reconversion\*___* *-* *_* *___* *--* /s /od >f:\music_shell\(_______Date\%today%\needtofix_Music_reconversion_2TB.txt
dir f:\music_shell\Music_reconversion\a* b* c* d* e* f* g* h* i* j* k* l* m* n* o* p* q* r* s* t* u* v* w* x* y* z* >f:\music_shell\(_______Date\%today%\allfolders_Music_reconversion_2TB.txt
REM | Begin commands for the music_youtube folder
cd\
f:
cd music_shell\music_youtube
dir F:\music_shell\music_youtube\*.mp3 *.wav *.wma /s /od>f:\music_shell\(_______Date\%today%\mostrecentcount_music_youtube_2TB.txt
dir F:\music_shell\music_youtube\*.flv *.mp4 *.web* /s /od >f:\music_shell\(_______Date\%today%\videofiles_music_youtube_2TB.txt
dir F:\music_shell\music_youtube\*___* *-* *_* *___* *--* /s /od >f:\music_shell\(_______Date\%today%\needtofix_music_youtube_2TB.txt
dir F:\music_shell\music_youtube\a* b* c* d* e* f* g* h* i* j* k* l* m* n* o* p* q* r* s* t* u* v* w* x* y* z* >f:\music_shell\(_______Date\%today%\music_youtube\allfolders_music_youtube_2TB.txt
cd\
x:
cd x:\music_shell
cd x:\music_shell\(_______Date
SET Today=%Date:~10,4%_%Date:~7,2%_%Date:~4,2%
mkdir %today%
REM | Begin commands for the entire music_shell folder
cd\
x:
cd music_shell
dir x:\music_shell\*.flv *.mp4 *.web* /s /od >e:\music_shell\(_______Date\%today%\videofiles_music_shell_2TB.txt
dir x:\music_shell\*___* *-* *_* *___* *--* /s /od >e:\music_shell\(_______Date\%today%\needtofix_music_shell_2TB.txt
dir x:\music_shell\a* b* c* d* e* f* g* h* i* j* k* l* m* n* o* p* q* r* s* t* u* v* w* x* y* z* >e:\music_shell\(_______Date\%today%\allfolders_music_shell_2TB.txt
dir x:\music_shell\*.mp3 *.wav *.wma /s /od>e:\music_shell\(_______Date\%today%\mostrecentcount_music_shell_2TB.txt
e:
cd e:\music_shell
cd e:\music_shell\(_______Date
SET Today=%Date:~10,4%_%Date:~7,2%_%Date:~4,2%
mkdir %today%
REM | Begin commands for the entire music_shell folder
cd\
e:
cd music_shell
dir e:\music_shell\*.flv *.mp4 *.web* /s /od >e:\music_shell\(_______Date\%today%\videofiles_music_shell_2TB.txt
dir e:\music_shell\*___* *-* *_* *___* *--* /s /od >e:\music_shell\(_______Date\%today%\needtofix_music_shell_2TB.txt
dir e:\music_shell\a* b* c* d* e* f* g* h* i* j* k* l* m* n* o* p* q* r* s* t* u* v* w* x* y* z* >e:\music_shell\(_______Date\%today%\allfolders_music_shell_2TB.txt
dir e:\music_shell\*.mp3 *.wav *.wma /s /od>e:\music_shell\(_______Date\%today%\mostrecentcount_music_shell_2TB.txt
REM | Begin commands for the music_reconversion folder
s:
cd s:\music_shell
cd s:\music_shell\(_______Date
SET Today=%Date:~10,4%_%Date:~7,2%_%Date:~4,2%
mkdir %today%
REM | Begin commands for the entire music_shell folder
cd\
s:
cd music_shell
dir s:\music_shell\*.mp3 *.wav *.wma /s >s:\music_shell\(_______Date\%today%\mostrecentcount_music_shell_daughter.txt
REM | dir s:\music_shell\*.flv *.mp4 *.web* /s /od >s:\music_shell\(_______Date\%today%\videofiles_music_shell_daughter.txt
REM | dir s:\music_shell\*___* *-* *_* *___* *--* /s /od >s:\music_shell\(_______Date\%today%\needtofix_music_shell_daugter.txt
REM | dir s:\music_shell\a* b* c* d* e* f* g* h* i* j* k* l* m* n* o* p* q* r* s* t* u* v* w* x* y* z* >s:\music_shell\(_______Date\%today%\allfolders_music_shell_daughter.txt
REM | Begin commands for the music_reconversion folder
cd\
cd C:\Users\Hanson\Desktop\Date
SET Today=%Date:~10,4%_%Date:~7,2%_%Date:~4,2%
mkdir %today%
REM | Begin commands for the entire music_shell folder
cd\
w:
cd music_shell
dir w:\music_shell\*.mp3 *.wav *.wma /s >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_music_shell_daughter.txt
REM | pause
REM | dir w:\music_shell\*.flv *.mp4 *.web* /s >C:\Users\Hanson\Desktop\Date\%today%\videofiles_music_shell_daughter.txt
REM | pause
REM | dir w:\music_shell\*___* *-* *_* *___* *--* /s >C:\Users\Hanson\Desktop\Date\%today%\needtofix_music_shell_daugter.txt
REM | pause
REM | dir w:\music_shell\a* b* c* d* e* f* g* h* i* j* k* l* m* n* o* p* q* r* s* t* u* v* w* x* y* z* >C:\Users\Hanson\Desktop\Date\%today%\allfolders_music_shell_daughter.txt
REM | pause3
REM | dir w:\music_shell\*.mp3 *.wav *.wma /s >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_music_shell_daughter.txt
cd\
c:
cd C:\Users\Hanson\Desktop\Date
SET Today=%Date:~10,4%_%Date:~7,2%_%Date:~4,2%
mkdir %today%
REM | Begin commands for the entire music_shell folder
cd\
q:
dir q:\*.* /o /s >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_all_son.txt
dir q:\*.flv *.mp4 *.web* /s /od >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_videos_son.txt
dir q:\*___* *-* *_* *___* *--* /s /od >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_fixers_son.txt
dir q:\a* b* c* d* e* f* g* h* i* j* k* l* m* n* o* p* q* r* s* t* u* v* w* x* y* z* >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_allfolders_son.txt
dir q:\*.mp3 *.wav *.wma /s /od>C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_music_son.txt
r:
dir r:\*.* /o /s >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_all_smartware.txt
dir r:\*.flv *.mp4 *.web* /s /od >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_videos_smartware.txt
dir r:\*___* *-* *_* *___* *--* /s /od >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_fixers_smartware.txt
dir r:\a* b* c* d* e* f* g* h* i* j* k* l* m* n* o* p* q* r* s* t* u* v* w* x* y* z* >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_allfolders_smartware.txt
dir r:\*.mp3 *.wav *.wma /s /od>C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_music_smartware.txt
s:
dir s:\*.* /o /s >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_all_public.txt
dir s:\*.flv *.mp4 *.web* /s /od >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_videos_public.txt
dir s:\*___* *-* *_* *___* *--* /s /od >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_fixers_public.txt
dir s:\a* b* c* d* e* f* g* h* i* j* k* l* m* n* o* p* q* r* s* t* u* v* w* x* y* z* >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_allfolders_public.txt
dir s:\*.mp3 *.wav *.wma /s /od>C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_music_public.txt
t:
dir t:\*.* /o /s >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_all_mom.txt
dir t:\*.flv *.mp4 *.web* /s /od >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_videos_mom.txt
dir t:\*___* *-* *_* *___* *--* /s /od >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_fixers_mom.txt
dir t:\a* b* c* d* e* f* g* h* i* j* k* l* m* n* o* p* q* r* s* t* u* v* w* x* y* z* >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_allfolders_mom.txt
dir t:\*.mp3 *.wav *.wma /s /od>C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_music_mom.txt
u:
dir u:\*.* /o /s >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_all_kevin.txt
dir u:\*.flv *.mp4 *.web* /s /od >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_videos_kevin.txt
dir u:\*___* *-* *_* *___* *--* /s /od >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_fixers_kevin.txt
dir u:\a* b* c* d* e* f* g* h* i* j* k* l* m* n* o* p* q* r* s* t* u* v* w* x* y* z* >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_allfolders_kevin.txt
dir u:\*.mp3 *.wav *.wma /s /od>C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_music_kevin.txt
v:
dir v:\*.* /o /s >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_all_hanson.txt
dir v:\*.flv *.mp4 *.web* /s /od >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_videos_hanson.txt
dir v:\*___* *-* *_* *___* *--* /s /od >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_fixers_hanson.txt
dir v:\a* b* c* d* e* f* g* h* i* j* k* l* m* n* o* p* q* r* s* t* u* v* w* x* y* z* >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_allfolders_hanson.txt
dir v:\*.mp3 *.wav *.wma /s /od>C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_music_hanson.txt
w:
dir w:\*.* /o /s >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_w_daughter.txt
dir w:\*.flv *.mp4 *.web* /s /od >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_videos_w_daughter.txt
dir w:\*___* *-* *_* *___* *--* /s /od >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_fixers_w_daughter.txt
dir w:\a* b* c* d* e* f* g* h* i* j* k* l* m* n* o* p* q* r* s* t* u* v* w* x* y* z* >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_allfolders_w_daughter.txt
dir w:\*.mp3 *.wav *.wma /s /od>C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_music_w_daughter.txt
x:
dir x:\*.* /o /s >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_family.txt
dir x:\*.flv *.mp4 *.web* /s /od >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_videos_family.txt
dir x:\*___* *-* *_* *___* *--* /s /od >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_fixers_family.txt
dir x:\a* b* c* d* e* f* g* h* i* j* k* l* m* n* o* p* q* r* s* t* u* v* w* x* y* z* >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_allfolders_family.txt
dir x:\*.mp3 *.wav *.wma /s /od>C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_music_family.txt
y:
dir y:\*.* /o /s >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_y_daughter.txt
dir y:\*.flv *.mp4 *.web* /s /od >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_videos_y_daughter.txt
dir y:\*___* *-* *_* *___* *--* /s /od >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_fixers_y_daughter.txt
dir y:\a* b* c* d* e* f* g* h* i* j* k* l* m* n* o* p* q* r* s* t* u* v* w* x* y* z* >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_allfolders_y_daughter.txt
dir y:\*.mp3 *.wav *.wma /s /od>C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_music_y_daughter.txt
z:
dir z:\*.* /o /s >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_dad.txt
dir z:\*.flv *.mp4 *.web* /s /od >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_videos_dad.txt
dir z:\*___* *-* *_* *___* *--* /s /od >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_fixers_dad.txt
dir z:\a* b* c* d* e* f* g* h* i* j* k* l* m* n* o* p* q* r* s* t* u* v* w* x* y* z* >C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_allfolders_dad.txt
dir z:\*.mp3 *.wav *.wma /s /od>C:\Users\Hanson\Desktop\Date\%today%\mostrecentcount_music_dad.txt

No comments: