Solved I'm looking for a program

tom982

٩(͡๏̯͡๏)۶
Vista Guru
Gold Member
You may or may not have seen my post yesterday and I've realised that that isn't going to be very easy to do so I've abandoned that plan.

I've realised that I don't want to convert my MP3 files (because I want all my music in MP3). These MP3 files are the ones with variable bitrates, 320kbps and 256kbps, which is the problem I had yesterday but seeing as I don't need to convert them, this problem has gone.

I'm looking for a program that will split my music into two folders - one for MP3 and one for any other extension (whilst maintaining the folder structure: Artist>Album>Song). So in other words, I'll have all of the songs I need to convert in one folder.

This is horrible to explain so I'll give an example:

If I have the following folder:

E:\~Music\Artist1\Album1\

And that folder contained the files:

song.mp3 and song2.aac

Then this program would split it into the following:

E:\MP3\~Music\Artist1\Album1\song.mp3
E:\AAC\~Music\Artist 1\Album1\song2.aac

But it did this for the whole of my music folder (E:\~Music). Then I can convert the whole AAC folder into 128kbps MP3 and merge the two folders.

Thanks in advance for any help!

Tom
 

My Computer

System One

  • Manufacturer/Model
    Build #1
    CPU
    Intel Core i7 3770K @4.4GHz
    Motherboard
    ASUS P8Z77-V PRO
    Memory
    Corsair Vengeance 2x4GB DDR3 1600MHz Low Profile (White)
    Graphics Card(s)
    Gigabyte Radeon HD 7850 (2GB GDDR5)
    Sound Card
    Integrated on motherboard
    Monitor(s) Displays
    23" LG LCD/LED IPS
    Screen Resolution
    1920*1080
    Hard Drives
    Samsung EVO 128GB SSD
    Seagate Barracuda 2TB 7200rpm
    2x500GB Seagate FreeAgent 5400rpm
    PSU
    Corsair TX650W V2 (80+ Bronze)
    Case
    NZXT Phantom 410
    Cooling
    Corsair H100 Water Cooler, 1x140mm and 1x120mm stock fans
    Keyboard
    Microsoft Desktop 2000 Wireless Keyboard
    Mouse
    Microsoft Desktop 2000 Wireless Mouse
    Internet Speed
    95 Mb/s Download 70 Mb/s Upload
That looks alright to do. I have started work. Today or tomorrow, or something like that :)
 

My Computer

System One

  • Manufacturer/Model
    Dell XPS 420
    CPU
    Intel Core 2 Quad Q9300 2.50GHz
    Motherboard
    Stock Dell 0TP406
    Memory
    4 gb (DDR2 800) 400MHz
    Graphics Card(s)
    ATI Radeon HD 3870 (512 MBytes)
    Sound Card
    Onboard
    Monitor(s) Displays
    1 x Dell 2007FP and 1 x (old) Sonic flat screen
    Screen Resolution
    1600 x 1200 and 1280 x 1204
    Hard Drives
    1 x 640Gb (SATA 300)
    Western Digital: WDC WD6400AAKS-75A7B0

    1 x 1Tb (SATA 600)
    Western Digital: Caviar Black, SATA 6GB/S, 64Mb cache, 8ms
    Western Digital: WDC WD1002FAEX-00Z3A0 ATA Device
    PSU
    Stock PSU - 375W
    Case
    Dell XPS 420
    Cooling
    Stock Fan
    Keyboard
    Dell Bluetooth
    Mouse
    Advent Optical ADE-WG01 (colour change light up)
    Internet Speed
    120 kb/s
    Other Info
    ASUS USB 3.0 5Gbps/SATA 6Gbps - PCI-Express Combo Controller Card (U3S6)
I love how if No one finds a program Rich makes it :)
 

My Computer

System One

  • Manufacturer/Model
    Custom Built
    CPU
    Intel Core i5 2400 @ 3.10GHz
    Motherboard
    Foxconn H67MP-S/-V/H67MP
    Memory
    8.0GB DDR3 @ 665MHz (2GBx4)
    Graphics Card(s)
    AMD HD Radeon 6870
    Sound Card
    Realtek High Definition Audio
    Monitor(s) Displays
    SMB1930NW (1440x900@60Hz)
    Screen Resolution
    1280x800
    Hard Drives
    977GB Seagate ST31000524AS ATA Device (SATA) + 250GB WD iSCSI attached Drive
    Case
    Novatech Night
    Keyboard
    Standard PS/2 Keyboard
    Mouse
    Dell HID-compliant mouse
I love how if No one finds a program Rich makes it :)

Tip: Post this:
shadowjk in the future ;) said:
Anyone know of an Operating System with no bugs in it?

But thanks a lot. It means a lot to me :o :party:
 

My Computer

System One

  • Manufacturer/Model
    Dell XPS 420
    CPU
    Intel Core 2 Quad Q9300 2.50GHz
    Motherboard
    Stock Dell 0TP406
    Memory
    4 gb (DDR2 800) 400MHz
    Graphics Card(s)
    ATI Radeon HD 3870 (512 MBytes)
    Sound Card
    Onboard
    Monitor(s) Displays
    1 x Dell 2007FP and 1 x (old) Sonic flat screen
    Screen Resolution
    1600 x 1200 and 1280 x 1204
    Hard Drives
    1 x 640Gb (SATA 300)
    Western Digital: WDC WD6400AAKS-75A7B0

    1 x 1Tb (SATA 600)
    Western Digital: Caviar Black, SATA 6GB/S, 64Mb cache, 8ms
    Western Digital: WDC WD1002FAEX-00Z3A0 ATA Device
    PSU
    Stock PSU - 375W
    Case
    Dell XPS 420
    Cooling
    Stock Fan
    Keyboard
    Dell Bluetooth
    Mouse
    Advent Optical ADE-WG01 (colour change light up)
    Internet Speed
    120 kb/s
    Other Info
    ASUS USB 3.0 5Gbps/SATA 6Gbps - PCI-Express Combo Controller Card (U3S6)
I am just about to test it out. I shall post a proper version soon, after any debugging, if required:

Code:
                if (Directory.Exists(baseDir))
                {
                    // Get all directories in base directory
                    string[] directories = Directory.GetDirectories(baseDir, "*", SearchOption.AllDirectories);

                    foreach (string d in directories)
                    {
                        // Foreach of these dirctoires, create an MP3 and "other" equivalent
                        Directory.CreateDirectory(d.Replace(baseDir, MP3));
                        Directory.CreateDirectory(d.Replace(baseDir, AAC));
                    }

                    // Get all files in base directory
                    string[] files = Directory.GetFiles(baseDir, "*.*", SearchOption.AllDirectories);
                    // Create Lists for MP3 files and other, in baseDir
                    List<string> MP3files = new List<string>();
                    List<string> otherfiles = new List<string>();

                    foreach (string f in files)
                    {
                        // Recurse baseDir files and add to MP3 or not. Case insensitive!
                        if (f.Substring(f.Length - 4).Equals(".mp3", StringComparison.OrdinalIgnoreCase))
                        {
                            MP3files.Add(f);
                        }
                        else
                        {
                            otherfiles.Add(f);
                        }
                    }

                    foreach (string f in MP3files)
                    {
                        // Copy all MP3 files...
                        File.Copy(f, f.Replace(baseDir, MP3), true);
                    }

                    foreach (string f in otherfiles)
                    {
                        // Copy all other files...
                        File.Copy(f, f.Replace(baseDir, AAC), true);
                    }

                    // Done!
                }
 
Last edited:

My Computer

System One

  • Manufacturer/Model
    Dell XPS 420
    CPU
    Intel Core 2 Quad Q9300 2.50GHz
    Motherboard
    Stock Dell 0TP406
    Memory
    4 gb (DDR2 800) 400MHz
    Graphics Card(s)
    ATI Radeon HD 3870 (512 MBytes)
    Sound Card
    Onboard
    Monitor(s) Displays
    1 x Dell 2007FP and 1 x (old) Sonic flat screen
    Screen Resolution
    1600 x 1200 and 1280 x 1204
    Hard Drives
    1 x 640Gb (SATA 300)
    Western Digital: WDC WD6400AAKS-75A7B0

    1 x 1Tb (SATA 600)
    Western Digital: Caviar Black, SATA 6GB/S, 64Mb cache, 8ms
    Western Digital: WDC WD1002FAEX-00Z3A0 ATA Device
    PSU
    Stock PSU - 375W
    Case
    Dell XPS 420
    Cooling
    Stock Fan
    Keyboard
    Dell Bluetooth
    Mouse
    Advent Optical ADE-WG01 (colour change light up)
    Internet Speed
    120 kb/s
    Other Info
    ASUS USB 3.0 5Gbps/SATA 6Gbps - PCI-Express Combo Controller Card (U3S6)
I love how if No one finds a program Rich makes it :)

Tip: Post this:
shadowjk in the future ;) said:
Anyone know of an Operating System with no bugs in it?

But thanks a lot. It means a lot to me :o :party:

:roflmao:

Looking good Richard!

I really like C#, you can read the code and have a basic idea of what's going on - mind you, your // notes help a fair bit :p

Tom
 

My Computer

System One

  • Manufacturer/Model
    Build #1
    CPU
    Intel Core i7 3770K @4.4GHz
    Motherboard
    ASUS P8Z77-V PRO
    Memory
    Corsair Vengeance 2x4GB DDR3 1600MHz Low Profile (White)
    Graphics Card(s)
    Gigabyte Radeon HD 7850 (2GB GDDR5)
    Sound Card
    Integrated on motherboard
    Monitor(s) Displays
    23" LG LCD/LED IPS
    Screen Resolution
    1920*1080
    Hard Drives
    Samsung EVO 128GB SSD
    Seagate Barracuda 2TB 7200rpm
    2x500GB Seagate FreeAgent 5400rpm
    PSU
    Corsair TX650W V2 (80+ Bronze)
    Case
    NZXT Phantom 410
    Cooling
    Corsair H100 Water Cooler, 1x140mm and 1x120mm stock fans
    Keyboard
    Microsoft Desktop 2000 Wireless Keyboard
    Mouse
    Microsoft Desktop 2000 Wireless Mouse
    Internet Speed
    95 Mb/s Download 70 Mb/s Upload
Hello Tom!

Done! Please backup your music - just in case. I don't see why it should go wrong, but it might well do.

It isn't very robust. It just about works.


  • When entering paths, NO trailing backslashes.

  • How big are these directories. Nothing goes about 260 characters, does it? If it does, I will need to drop in a different algorithm (I have literally just written one for the first beta of SURT_FIX_GENERATOR)

  • Make sure that you do not have any directories which have no permissions to access.

  • I just used AAC for convenience. It actually works on MP3 and NOT.

  • Create your MP3 and AAC directories empty first.

  • Doesn't work on files with no extension.

  • Be patient. It will take a while! (but I have no idea how long)
Hopefully not out of memory errors! Hopefully no overflows. I wrote in .net to try to avoid these.

I have written non-stringent checking for things like backslashes, but do try to get it correct (actually, it will work if all have backslashes, or none do. I opted to enforce none)

Good luck!

Richard

P.S. Please put the symbols (.pdb file) in the same directory as the .exe. This means that if it does crash, it should generate a nice error (maybe even a line number) for me to analyse. Then use Ctrl-C on the message box, and paste it here.
 

Attachments

  • TomMusic.zip
    8.8 KB · Views: 6

My Computer

System One

  • Manufacturer/Model
    Dell XPS 420
    CPU
    Intel Core 2 Quad Q9300 2.50GHz
    Motherboard
    Stock Dell 0TP406
    Memory
    4 gb (DDR2 800) 400MHz
    Graphics Card(s)
    ATI Radeon HD 3870 (512 MBytes)
    Sound Card
    Onboard
    Monitor(s) Displays
    1 x Dell 2007FP and 1 x (old) Sonic flat screen
    Screen Resolution
    1600 x 1200 and 1280 x 1204
    Hard Drives
    1 x 640Gb (SATA 300)
    Western Digital: WDC WD6400AAKS-75A7B0

    1 x 1Tb (SATA 600)
    Western Digital: Caviar Black, SATA 6GB/S, 64Mb cache, 8ms
    Western Digital: WDC WD1002FAEX-00Z3A0 ATA Device
    PSU
    Stock PSU - 375W
    Case
    Dell XPS 420
    Cooling
    Stock Fan
    Keyboard
    Dell Bluetooth
    Mouse
    Advent Optical ADE-WG01 (colour change light up)
    Internet Speed
    120 kb/s
    Other Info
    ASUS USB 3.0 5Gbps/SATA 6Gbps - PCI-Express Combo Controller Card (U3S6)
I love how if No one finds a program Rich makes it :)

Tip: Post this:
shadowjk in the future ;) said:
Anyone know of an Operating System with no bugs in it?

But thanks a lot. It means a lot to me :o :party:

:roflmao:

Looking good Richard!

I really like C#, you can read the code and have a basic idea of what's going on - mind you, your // notes help a fair bit :p

Tom

I always intended to send you the source code. For my semi-protected SURT_Fix_Generator, WU_Trace, VF_Diag, and KB_Extractor, and my own apps, I do to a certain extent use Hungarian Notation. I dropped that for this app.

Hungarian Notation

Everyone loves Hungarian Notation!

Code:
1   #include "sy.h"
2   extern int *rgwDic;
3   extern int bsyMac;
4   struct SY *PsySz(char sz[])
6      {
7      char *pch;
8      int cch;
9      struct SY *psy, *PsyCreate();
10      int *pbsy;
11      int cwSz;
12      unsigned wHash=0;
13      pch=sz;
14      while (*pch!=0
15         wHash=(wHash<>11+*pch++;
16      cch=pch-sz;
17      pbsy=&rgbsyHash[(wHash&077777)%cwHash];
18      for (; *pbsy!=0; pbsy = &psy->bsyNext)
19         {
20         char *szSy;
21         szSy= (psy=(struct SY*)&rgwDic[*pbsy])->sz;
22         pch=sz;
23         while (*pch==*szSy++)
24            {
25            if (*pch++==0)
26               return (psy);
27            }
28         }
29      cwSz=0;
30      if (cch>=2)
31         cwSz=(cch-2/sizeof(int)+1;
32      *pbsy=(int *)(psy=PsyCreate(cwSY+cwSz))-rgwDic;
33      Zero((int *)psy,cwSY);
34      bltbyte(sz, psy->sz, cch+1);
35      return(psy);
36      }



OK, so it is C++ using pointers, and pointers are half of the problem in that code.
 

My Computer

System One

  • Manufacturer/Model
    Dell XPS 420
    CPU
    Intel Core 2 Quad Q9300 2.50GHz
    Motherboard
    Stock Dell 0TP406
    Memory
    4 gb (DDR2 800) 400MHz
    Graphics Card(s)
    ATI Radeon HD 3870 (512 MBytes)
    Sound Card
    Onboard
    Monitor(s) Displays
    1 x Dell 2007FP and 1 x (old) Sonic flat screen
    Screen Resolution
    1600 x 1200 and 1280 x 1204
    Hard Drives
    1 x 640Gb (SATA 300)
    Western Digital: WDC WD6400AAKS-75A7B0

    1 x 1Tb (SATA 600)
    Western Digital: Caviar Black, SATA 6GB/S, 64Mb cache, 8ms
    Western Digital: WDC WD1002FAEX-00Z3A0 ATA Device
    PSU
    Stock PSU - 375W
    Case
    Dell XPS 420
    Cooling
    Stock Fan
    Keyboard
    Dell Bluetooth
    Mouse
    Advent Optical ADE-WG01 (colour change light up)
    Internet Speed
    120 kb/s
    Other Info
    ASUS USB 3.0 5Gbps/SATA 6Gbps - PCI-Express Combo Controller Card (U3S6)
Tip: Post this:

But thanks a lot. It means a lot to me :o :party:

:roflmao:

Looking good Richard!

I really like C#, you can read the code and have a basic idea of what's going on - mind you, your // notes help a fair bit :p

Tom

I always intended to send you the source code. For my semi-protected SURT_Fix_Generator, WU_Trace, VF_Diag, and KB_Extractor, and my own apps, I do to a certain extent use Hungarian Notation. I dropped that for this app.

Hungarian Notation

Everyone loves Hungarian Notation!

Code:
1   #include "sy.h"
2   extern int *rgwDic;
3   extern int bsyMac;
4   struct SY *PsySz(char sz[])
6      {
7      char *pch;
8      int cch;
9      struct SY *psy, *PsyCreate();
10      int *pbsy;
11      int cwSz;
12      unsigned wHash=0;
13      pch=sz;
14      while (*pch!=0
15         wHash=(wHash<>11+*pch++;
16      cch=pch-sz;
17      pbsy=&rgbsyHash[(wHash&077777)%cwHash];
18      for (; *pbsy!=0; pbsy = &psy->bsyNext)
19         {
20         char *szSy;
21         szSy= (psy=(struct SY*)&rgwDic[*pbsy])->sz;
22         pch=sz;
23         while (*pch==*szSy++)
24            {
25            if (*pch++==0)
26               return (psy);
27            }
28         }
29      cwSz=0;
30      if (cch>=2)
31         cwSz=(cch-2/sizeof(int)+1;
32      *pbsy=(int *)(psy=PsyCreate(cwSY+cwSz))-rgwDic;
33      Zero((int *)psy,cwSY);
34      bltbyte(sz, psy->sz, cch+1);
35      return(psy);
36      }



OK, so it is C++ using pointers, and pointers are half of the problem in that code.

That looks horrible! I could probably write something similar by repeatedly smashing my hand into the keyboard :p

Thank you Richard, you have no idea how much time you're about to save me!

I'm just backing up my music now and it says that it'll take an hour to complete so I'll post back then :)

Tom
 

My Computer

System One

  • Manufacturer/Model
    Build #1
    CPU
    Intel Core i7 3770K @4.4GHz
    Motherboard
    ASUS P8Z77-V PRO
    Memory
    Corsair Vengeance 2x4GB DDR3 1600MHz Low Profile (White)
    Graphics Card(s)
    Gigabyte Radeon HD 7850 (2GB GDDR5)
    Sound Card
    Integrated on motherboard
    Monitor(s) Displays
    23" LG LCD/LED IPS
    Screen Resolution
    1920*1080
    Hard Drives
    Samsung EVO 128GB SSD
    Seagate Barracuda 2TB 7200rpm
    2x500GB Seagate FreeAgent 5400rpm
    PSU
    Corsair TX650W V2 (80+ Bronze)
    Case
    NZXT Phantom 410
    Cooling
    Corsair H100 Water Cooler, 1x140mm and 1x120mm stock fans
    Keyboard
    Microsoft Desktop 2000 Wireless Keyboard
    Mouse
    Microsoft Desktop 2000 Wireless Mouse
    Internet Speed
    95 Mb/s Download 70 Mb/s Upload
tom982 said:
That looks horrible! I could probably write something similar by repeatedly smashing my hand into the keyboard :p

Thank you Richard, you have no idea how much time you're about to save me!

I'm just backing up my music now and it says that it'll take an hour to complete so I'll post back then :)

Tom

You get used to it. Once you know all Hungarian Notation (HN) you can quickly decode it, and actually know exactly what something is without having to search for it, or hover over it. I am used to writing stuff like that - and maintaining it!

Good luck! I am pretty certain that all will go well. Hopefully no recursive copy of C:\ into C:\Folder! I don't think so!
 

My Computer

System One

  • Manufacturer/Model
    Dell XPS 420
    CPU
    Intel Core 2 Quad Q9300 2.50GHz
    Motherboard
    Stock Dell 0TP406
    Memory
    4 gb (DDR2 800) 400MHz
    Graphics Card(s)
    ATI Radeon HD 3870 (512 MBytes)
    Sound Card
    Onboard
    Monitor(s) Displays
    1 x Dell 2007FP and 1 x (old) Sonic flat screen
    Screen Resolution
    1600 x 1200 and 1280 x 1204
    Hard Drives
    1 x 640Gb (SATA 300)
    Western Digital: WDC WD6400AAKS-75A7B0

    1 x 1Tb (SATA 600)
    Western Digital: Caviar Black, SATA 6GB/S, 64Mb cache, 8ms
    Western Digital: WDC WD1002FAEX-00Z3A0 ATA Device
    PSU
    Stock PSU - 375W
    Case
    Dell XPS 420
    Cooling
    Stock Fan
    Keyboard
    Dell Bluetooth
    Mouse
    Advent Optical ADE-WG01 (colour change light up)
    Internet Speed
    120 kb/s
    Other Info
    ASUS USB 3.0 5Gbps/SATA 6Gbps - PCI-Express Combo Controller Card (U3S6)
I'll let you know how it goes. On a different topic, why wont this C# program launch? I'm working my way through C# 2010 For Dummies and this was the first example

Code:
using System;

namespace Program1
{
    public class Program
    {
        //This is where the program starts
        static void Main(String[] args)
        {
            //Prompt user to enter name
            Console.WriteLine("Please enter your name:");

            //Now read the name entered
            string name = Console.ReadLine();

            //Greet user
            Console.WriteLine("Hello" + name);

            //End program
            Console.WriteLine("Press enter to terminate...");
            Console.Read();
        }
    }
}
 

Attachments

  • Program1.exe
    7 KB · Views: 11

My Computer

System One

  • Manufacturer/Model
    Build #1
    CPU
    Intel Core i7 3770K @4.4GHz
    Motherboard
    ASUS P8Z77-V PRO
    Memory
    Corsair Vengeance 2x4GB DDR3 1600MHz Low Profile (White)
    Graphics Card(s)
    Gigabyte Radeon HD 7850 (2GB GDDR5)
    Sound Card
    Integrated on motherboard
    Monitor(s) Displays
    23" LG LCD/LED IPS
    Screen Resolution
    1920*1080
    Hard Drives
    Samsung EVO 128GB SSD
    Seagate Barracuda 2TB 7200rpm
    2x500GB Seagate FreeAgent 5400rpm
    PSU
    Corsair TX650W V2 (80+ Bronze)
    Case
    NZXT Phantom 410
    Cooling
    Corsair H100 Water Cooler, 1x140mm and 1x120mm stock fans
    Keyboard
    Microsoft Desktop 2000 Wireless Keyboard
    Mouse
    Microsoft Desktop 2000 Wireless Mouse
    Internet Speed
    95 Mb/s Download 70 Mb/s Upload
I'll let you know how it goes. On a different topic, why wont this C# program launch? I'm working my way through C# 2010 For Dummies and this was the first example

Code:
using System;

namespace Program1
{
    public class Program
    {
        //This is where the program starts
        static void Main(String[] args)
        {
            //Prompt user to enter name
            Console.WriteLine("Please enter your name:");

            //Now read the name entered
            string name = Console.ReadLine();

            //Greet user
            Console.WriteLine("Hello" + name);

            //End program
            Console.WriteLine("Press enter to terminate...");
            Console.Read();
        }
    }
}

Well that is really odd :huh: It really should have worked. It doesn't work on my machine either. But when I compile the source, it works fine.

I was going to say that it was corrupt, but it isn't very corrupt:

Program2.jpg

You just started a Console Application, and pasted in that source code? It should have worked! Drop down the Build menu, and click on Clean Solution.

Now try to build it again. Same problem?

I shall look into it!

Richard
 

My Computer

System One

  • Manufacturer/Model
    Dell XPS 420
    CPU
    Intel Core 2 Quad Q9300 2.50GHz
    Motherboard
    Stock Dell 0TP406
    Memory
    4 gb (DDR2 800) 400MHz
    Graphics Card(s)
    ATI Radeon HD 3870 (512 MBytes)
    Sound Card
    Onboard
    Monitor(s) Displays
    1 x Dell 2007FP and 1 x (old) Sonic flat screen
    Screen Resolution
    1600 x 1200 and 1280 x 1204
    Hard Drives
    1 x 640Gb (SATA 300)
    Western Digital: WDC WD6400AAKS-75A7B0

    1 x 1Tb (SATA 600)
    Western Digital: Caviar Black, SATA 6GB/S, 64Mb cache, 8ms
    Western Digital: WDC WD1002FAEX-00Z3A0 ATA Device
    PSU
    Stock PSU - 375W
    Case
    Dell XPS 420
    Cooling
    Stock Fan
    Keyboard
    Dell Bluetooth
    Mouse
    Advent Optical ADE-WG01 (colour change light up)
    Internet Speed
    120 kb/s
    Other Info
    ASUS USB 3.0 5Gbps/SATA 6Gbps - PCI-Express Combo Controller Card (U3S6)
I made a new project and typed that out from the example in the book, I could have copied it but I wanted to get a grasp of all of the { and ; that you have to use. Yes, it still doesn't launch. How did you start off learning C#? It all seems very overwhelming - I don't understand float or int at all!

Tom
 

My Computer

System One

  • Manufacturer/Model
    Build #1
    CPU
    Intel Core i7 3770K @4.4GHz
    Motherboard
    ASUS P8Z77-V PRO
    Memory
    Corsair Vengeance 2x4GB DDR3 1600MHz Low Profile (White)
    Graphics Card(s)
    Gigabyte Radeon HD 7850 (2GB GDDR5)
    Sound Card
    Integrated on motherboard
    Monitor(s) Displays
    23" LG LCD/LED IPS
    Screen Resolution
    1920*1080
    Hard Drives
    Samsung EVO 128GB SSD
    Seagate Barracuda 2TB 7200rpm
    2x500GB Seagate FreeAgent 5400rpm
    PSU
    Corsair TX650W V2 (80+ Bronze)
    Case
    NZXT Phantom 410
    Cooling
    Corsair H100 Water Cooler, 1x140mm and 1x120mm stock fans
    Keyboard
    Microsoft Desktop 2000 Wireless Keyboard
    Mouse
    Microsoft Desktop 2000 Wireless Mouse
    Internet Speed
    95 Mb/s Download 70 Mb/s Upload
It's running now, it's created all of the directories but at the moment there's no files in any of them. There was one mp3 file that wasn't in a folder, i.e. E:\~Music\song.mp3 and that's been moved to E:\~Music\MP3\song.mp3 so it's done something :)

At the moment it's not responding, I've set it to run in real time on task manager and I'll leave it for a good few hours to sift through the 40GB of files

Tom
 

My Computer

System One

  • Manufacturer/Model
    Build #1
    CPU
    Intel Core i7 3770K @4.4GHz
    Motherboard
    ASUS P8Z77-V PRO
    Memory
    Corsair Vengeance 2x4GB DDR3 1600MHz Low Profile (White)
    Graphics Card(s)
    Gigabyte Radeon HD 7850 (2GB GDDR5)
    Sound Card
    Integrated on motherboard
    Monitor(s) Displays
    23" LG LCD/LED IPS
    Screen Resolution
    1920*1080
    Hard Drives
    Samsung EVO 128GB SSD
    Seagate Barracuda 2TB 7200rpm
    2x500GB Seagate FreeAgent 5400rpm
    PSU
    Corsair TX650W V2 (80+ Bronze)
    Case
    NZXT Phantom 410
    Cooling
    Corsair H100 Water Cooler, 1x140mm and 1x120mm stock fans
    Keyboard
    Microsoft Desktop 2000 Wireless Keyboard
    Mouse
    Microsoft Desktop 2000 Wireless Mouse
    Internet Speed
    95 Mb/s Download 70 Mb/s Upload
It's running now, it's created all of the directories but at the moment there's no files in any of them. There was one mp3 file that wasn't in a folder, i.e. E:\~Music\song.mp3 and that's been moved to E:\~Music\MP3\song.mp3 so it's done something :)

At the moment it's not responding, I've set it to run in real time on task manager and I'll leave it for a good few hours to sift through the 40GB of files

Tom

Oooops. Forgot to put it on a BackgroundWorker. It should still be doing something, even not responding. Hopefully.
 

My Computer

System One

  • Manufacturer/Model
    Dell XPS 420
    CPU
    Intel Core 2 Quad Q9300 2.50GHz
    Motherboard
    Stock Dell 0TP406
    Memory
    4 gb (DDR2 800) 400MHz
    Graphics Card(s)
    ATI Radeon HD 3870 (512 MBytes)
    Sound Card
    Onboard
    Monitor(s) Displays
    1 x Dell 2007FP and 1 x (old) Sonic flat screen
    Screen Resolution
    1600 x 1200 and 1280 x 1204
    Hard Drives
    1 x 640Gb (SATA 300)
    Western Digital: WDC WD6400AAKS-75A7B0

    1 x 1Tb (SATA 600)
    Western Digital: Caviar Black, SATA 6GB/S, 64Mb cache, 8ms
    Western Digital: WDC WD1002FAEX-00Z3A0 ATA Device
    PSU
    Stock PSU - 375W
    Case
    Dell XPS 420
    Cooling
    Stock Fan
    Keyboard
    Dell Bluetooth
    Mouse
    Advent Optical ADE-WG01 (colour change light up)
    Internet Speed
    120 kb/s
    Other Info
    ASUS USB 3.0 5Gbps/SATA 6Gbps - PCI-Express Combo Controller Card (U3S6)
Yes, so far its done 2,500 files :party: It hasn't started the AAC ones yet, that folder is still empty but as far as I know it hasn't frozen :)

Tom
 

My Computer

System One

  • Manufacturer/Model
    Build #1
    CPU
    Intel Core i7 3770K @4.4GHz
    Motherboard
    ASUS P8Z77-V PRO
    Memory
    Corsair Vengeance 2x4GB DDR3 1600MHz Low Profile (White)
    Graphics Card(s)
    Gigabyte Radeon HD 7850 (2GB GDDR5)
    Sound Card
    Integrated on motherboard
    Monitor(s) Displays
    23" LG LCD/LED IPS
    Screen Resolution
    1920*1080
    Hard Drives
    Samsung EVO 128GB SSD
    Seagate Barracuda 2TB 7200rpm
    2x500GB Seagate FreeAgent 5400rpm
    PSU
    Corsair TX650W V2 (80+ Bronze)
    Case
    NZXT Phantom 410
    Cooling
    Corsair H100 Water Cooler, 1x140mm and 1x120mm stock fans
    Keyboard
    Microsoft Desktop 2000 Wireless Keyboard
    Mouse
    Microsoft Desktop 2000 Wireless Mouse
    Internet Speed
    95 Mb/s Download 70 Mb/s Upload
After several hours of working, it has all finished :party: Its worked like a charm so thank you Richard for all of your hard work

Tom
 

My Computer

System One

  • Manufacturer/Model
    Build #1
    CPU
    Intel Core i7 3770K @4.4GHz
    Motherboard
    ASUS P8Z77-V PRO
    Memory
    Corsair Vengeance 2x4GB DDR3 1600MHz Low Profile (White)
    Graphics Card(s)
    Gigabyte Radeon HD 7850 (2GB GDDR5)
    Sound Card
    Integrated on motherboard
    Monitor(s) Displays
    23" LG LCD/LED IPS
    Screen Resolution
    1920*1080
    Hard Drives
    Samsung EVO 128GB SSD
    Seagate Barracuda 2TB 7200rpm
    2x500GB Seagate FreeAgent 5400rpm
    PSU
    Corsair TX650W V2 (80+ Bronze)
    Case
    NZXT Phantom 410
    Cooling
    Corsair H100 Water Cooler, 1x140mm and 1x120mm stock fans
    Keyboard
    Microsoft Desktop 2000 Wireless Keyboard
    Mouse
    Microsoft Desktop 2000 Wireless Mouse
    Internet Speed
    95 Mb/s Download 70 Mb/s Upload
No problem, Tom! Really glad to have been of assistance! Hopefully the file counts match?

The reason why it crashed was because all of the work was done on the UI thread. The UI thread checks on the UI, and responds to clicks etc. If I tell the UI thread to do a big job, it does the big job, and ignores all clicks etc., and Windows thinks that it has Stopped Responding (it has) but at the same time, it is still processing the big job, and it hasn't crashed.

The reason why I didn't want trailing slashes, was because I take directories (with a mix of trailing and not):

C:\Users\Richard\Desktop\Base\
C:\Users\Richard\Desktop\MP3
C:\Other


The program takes a file:

C:\Users\Richard\Desktop\Base\subdir\file.mp3, and replaces the base (C:\Users\Richard\Desktop\Base\) with the MP3 dir (C:\Users\Richard\Desktop\MP3)

Work through the sums. This gives:

C:\Users\Richard\Desktop\MP3subdir\file.mp3

Have a think. Do you see why? It does work if all have a trailing slash, but not with a mix.

I made a new project and typed that out from the example in the book, I could have copied it but I wanted to get a grasp of all of the { and ; that you have to use. Yes, it still doesn't launch. How did you start off learning C#? It all seems very overwhelming - I don't understand float or int at all!

Tom

Don't worry :) To begin with, I was really worried, because I could only copy programs out of the book, and I kept thinking that I couldn't possibly learn coding like this. Really, don't worry. Make sure you understand what the book is saying. Keep reading. Keep copying them out (and I mean re-writing, which is MUCH better than copy and paste, because you actually get used to writing the lines out) and eventually, one day, one magical day, you will just open a new project and write something from scratch, referencing from the book :) Keep reading. Keep enthused!

I shall keep thinking about your problem, and report back.

Richard
 

My Computer

System One

  • Manufacturer/Model
    Dell XPS 420
    CPU
    Intel Core 2 Quad Q9300 2.50GHz
    Motherboard
    Stock Dell 0TP406
    Memory
    4 gb (DDR2 800) 400MHz
    Graphics Card(s)
    ATI Radeon HD 3870 (512 MBytes)
    Sound Card
    Onboard
    Monitor(s) Displays
    1 x Dell 2007FP and 1 x (old) Sonic flat screen
    Screen Resolution
    1600 x 1200 and 1280 x 1204
    Hard Drives
    1 x 640Gb (SATA 300)
    Western Digital: WDC WD6400AAKS-75A7B0

    1 x 1Tb (SATA 600)
    Western Digital: Caviar Black, SATA 6GB/S, 64Mb cache, 8ms
    Western Digital: WDC WD1002FAEX-00Z3A0 ATA Device
    PSU
    Stock PSU - 375W
    Case
    Dell XPS 420
    Cooling
    Stock Fan
    Keyboard
    Dell Bluetooth
    Mouse
    Advent Optical ADE-WG01 (colour change light up)
    Internet Speed
    120 kb/s
    Other Info
    ASUS USB 3.0 5Gbps/SATA 6Gbps - PCI-Express Combo Controller Card (U3S6)
I love how if No one finds a program Rich makes it :)

I agree totally with you Josh.
To me it's amazing?'
Tom, in this instance, asks for assistance Post 1 by Post 18, 'voila' all finished!

Truly awesome to watch unfold in the thread!

Brilliant Richard.
 

My Computer

System One

  • Manufacturer/Model
    Hewlett-Packard SR5019UK
    CPU
    AMD Athlon 64 processor 3800 + 2.40GHz
    Motherboard
    M2N68-LA (Narra)
    Memory
    2.50GB
    Graphics Card(s)
    nVidia GeForce
    Sound Card
    Realtec ALC888 Audio
    Monitor(s) Displays
    17" LCD Monitor
    Hard Drives
    160 Gb Usable Hard Drive
    Other Info
    HP G56 Laptop Win 7 64bit. 4Gb Ram DDR2's. Hitachi 450Gb Hard Drive. Pentium(R) Duel-Core CPU.
Hello everyone

I see that the problem has been solved now,
but I had a utility that perhaps could be of service.
I put it here anyway, in case someone find it useful.

Hope to have helped somehow.
Sweet

And Richard, great work that's the spirit, really
happy0065.gif
smiley_thumbsup.gif
 
Last edited:

My Computer

System One

  • Manufacturer/Model
    Acer Aspire 5738G-644G32MN
    CPU
    Intel Core 2 Duo - clockspeed 2000 MHz
    Motherboard
    Acer JV50
    Memory
    RAM 4 GB - SO-DIMM DDR3
    Graphics Card(s)
    NVIDIA GeForce - G105M - 512 MB
    Screen Resolution
    1366 x 768 Pixels
    Hard Drives
    Hitachi HTS543232L9A300
    320 GB - Type SATA - Speed 5400 rpm
    Keyboard
    Azerty
    Mouse
    Logitech Wireless Mouse M505
    Internet Speed
    Currently 14.5 MB/Sec which means 1.8 MB/Sec effective
Back
Top