我有一个包含 21 个视频文件的 winform 应用程序,它们的路径设置为 applicaton.startupPath 像这样......
vpath[0] = Application.StartupPath + @"\v00.m4v";
vpath[1] = Application.StartupPath + @"\v01.m4v";
vpath[2] = Application.StartupPath + @"\v02.m4v";
vpath[3] = Application.StartupPath + @"\v03.m4v";
vpath[4] = Application.StartupPath + @"\v04.m4v";
vpath[5] = Application.StartupPath + @"\v05.m4v";
vpath[6] = Application.StartupPath + @"\v06.m4v";
vpath[7] = Application.StartupPath + @"\v07.m4v";
vpath[8] = Application.StartupPath + @"\v08.m4v";
vpath[9] = Application.StartupPath + @"\v09.m4v";
vpath[10] = Application.StartupPath + @"\v10.m4v";
vpath[11] = Application.StartupPath + @"\v11.m4v";
vpath[12] = Application.StartupPath + @"\v12.m4v";
vpath[13] = Application.StartupPath + @"\v13.m4v";
vpath[14] = Application.StartupPath + @"\v14.m4v";
vpath[15] = Application.StartupPath + @"\v15.m4v";
vpath[16] = Application.StartupPath + @"\v16.m4v";
vpath[17] = Application.StartupPath + @"\v17.m4v";
vpath[18] = Application.StartupPath + @"\v18.m4v";
vpath[19] = Application.StartupPath + @"\v19.m4v";
vpath[20] = Application.StartupPath + @"\v20.m4v";
现在,如果用户想要更改这些视频,那么他必须将其命名为 v00 到 v20。现在,如果用户添加不同格式的视频,那么我该如何更改路径?是否可以在运行时更改它?如果是,那怎么办??