string fullFileName = "c:/temp/1.wav";
            string fileName = fullFileName.Substring(fullFileName.LastIndexOf(char.Parse("/")) + 1);
            string fileNameWithoutType = fileName.Substring(0, fileName.IndexOf(char.Parse(".")));
            int index = int.Parse(fileNameWithoutType) + 1;当然,其他的要有异常处理啊什么的就不仔细说了,楼主也一定知道。