我目前正在尝试在本地文件夹的c#上保留一个计数器,以用于创建的新文件。
我有两个必须继续检查的CD和LP子目录。
也许一些伪代码可能会帮助
static int CDcounter = 0;
static int LPcounter = 0;
public void returnFileCount()
{
//Location of Files
string[] files = Directory.GetFiles(@"C:\Data\LotData");
//if file sub directory = cd go in and check for new files
//if new files pop up in cd CDcounter ++ same for LP
}