The error I get is:
"An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in system.windows.forms.dll
"Additional information: Specified argument was out of the range of valid values."
The error occurs when counter is 379. Is there a size limitation to the string  or the Directory.GetFiles () function that I don't know about? If not any suggestions as to why I am getting the problem?