Thanks Salmon for showing me how to do that in batch. I have gone in and changed my file names manually for many of the MP4's since some were created as DVD_unknown.mp4 for example and then I have to go in and type Cheech_And_Chong__Things_Are_Tough_All_
Over.mp4 and switch like Terminator4x3.mp4 to just Terminator.mp4. I am using Format Factory to generate many of my MP4's off of my DVD collection and it worked really well for about 95% of my movies. Other DVD's that don't like it I can use my capture card and software in the HTPC to act like a DVR to play to the HTPC from my DVD player and create the MP4 the long way for my home theater setup. The DVD's and VHS tapes then go into storage and I have my entire movie collection on a 500GB drive which is currently about 200GB. My wife the one day said oh, well since you converted those movies we can now get rid of them and sell them...
I SAID NOOOO WAY!!! Its Piracy if we dont retain ownership of the movies! So we legally have to keep physical posession of them for as long as we own the digital copy of it. She agreed then to let the box of movies stay in the closet untampered with..lol So I am only creating "Fair-Use" Format Shifted Copies! Most movies are about 700MB to 1.2GB in size created as 720 format. Since I only have a 32" screen 720 is fine.
Since I want to know how to do it in both Batch & C++ now, and have some compile errors in C++, I am going to continue this thread with the errors I got with BC's code to figure out why I am having compile issues. It might be as simple as my compiler is different than BC's.
I ran into a problem years ago when i was writing C++ in both Borland 4.0 that I owned which came bundled with a Borland book, and MS VC++ 5.0 that the college owned at the time in which one liked the header or handler I think its called #include<iostream> and the other preferred #include<iostream.h>...so i tried to remove the .h from #include<windows.h> since the rest were without .h and got a single error of windows not found or something along those lines. Also went and added .h to those without.h to make all the same statement style and it then gave me like 13 errors instead of 4 compiling. So below is the error I get that maybe you can point me in the right direction to resolve since it doesnt look very straight forward to me as a error of missing a ; etc would be.
I have never used the Windows.h header/handler before so maybe I need to do something other than just copy/paste and compile. In the past with other programs calling out to custom .h files, I remember having to go in and build .h files to be present for the compilation when it links it to the main program. I have never written my own .h file to link to and mainly have coded within the console programming C/C++ environment as taught in college. I kind of feel like I was passed through the system when it comes to C++ programming as for in advanced C++ we were only dealing with CLASSES. Leaving college with a Computer Systems Management (MIS) Degree and favoring C++ over other languages and digging into the more advanced stuff, i feel as if they should have covered classes when I took the 2nd course Intermediate C++, then really dove into the advanced stuff in the advanced C++ the 3rd semester to go into stuff like what BC has coded here that is new territory and I am soaking up as much info as I can from it. The other thing I need to do is stay active with it too instead of just coding when I need something, since if you dont use it you lose it. Similar to how I passed advanced math with calculus and loved trig, and when going to assist a friend with his math the one day after not doing it for almost 10 years, I knew some stuff right off, but other stuff I was like hmm...lets look it up..lol If I played with it after learning it, I would have retained it better and programming is the same way I feel.
--------------------Configuration: htpc3 - Win32 Debug--------------------
Compiling...
htpc3.cpp
c:\dchtml\htpc3.cpp(7) : error C2061: syntax error : identifier '_TCHAR'
c:\dchtml\htpc3.cpp(14) : error C2664: 'FindFirstFileA' : cannot convert parameter 1 from 'unsigned short [15]' to 'const char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\dchtml\htpc3.cpp(24) : error C2664: 'DeleteFileA' : cannot convert parameter 1 from 'unsigned short [12]' to 'const char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\dchtml\htpc3.cpp(36) : error C2664: 'wcstombs' : cannot convert parameter 2 from 'char [260]' to 'const unsigned short *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Error executing cl.exe.
htpc3.obj - 4 error(s), 0 warning(s)