Beispiel #1
0
        private void btnCollectLinks_Click(object sender, EventArgs e)
        {
            lblStatus.Text = "Starting";
            //cFile oFile = new cFile("C:\\Users\\joshua\\Sync\\Dropbox\\Documents\\FF\\input");
            //string[] fileList = oFile.GetAllFileList("C:\\Users\\joshua\\Sync\\Dropbox\\Documents\\FF\\input");
            //cUrlCollector oUrlCollector = new cUrlCollector();
            List <string> sPaths = GetLinks();
            // oUrlCollector.GetLinks(fileList);
            cUrlTool oUrl = new cUrlTool();

            oUrl.ExportedLinkPath = "C:\\Users\\joshua\\Sync\\Dropbox\\Documents\\FF\\InputsAll.txt";
            int iCnt = 0;

            foreach (string sT in sPaths)
            {
                string sOutput = "FF" + iCnt.ToString() + ".txt";
                sPaths.Add(sT);
                oUrl.GetLinks(sT);
                oUrl.WriteLinks(sOutput);
                iCnt += 1;
            }
            //oUrl.GetLinks("C:\\Users\\joshua\\Sync\\Dropbox\\Documents\\FF\\input");
            //oUrl.WriteLinks(oUrl.UrlList);
            lblStatus.Text = "Finished";
        }
Beispiel #2
0
        private void btnCollectLinks_Click(object sender, EventArgs e)
        {
            lblStatus.Text = "Starting";
            string sPath = "";

            sPath = "E:\\sync\\Dropbox\\Documents\\FF\\input";
            //cFile oFile = new cFile("C:\\Users\\joshua\\Sync\\Dropbox\\Documents\\FF\\input");
            //string[] fileList = oFile.GetAllFileList("C:\\Users\\joshua\\Sync\\Dropbox\\Documents\\FF\\input");
            //cUrlCollector oUrlCollector = new cUrlCollector();
            // oUrlCollector.GetLinks(fileList);
            cUrlTool oUrl = new cUrlTool();

            oUrl.ExportedLinkPath = "E:\\sync\\Dropbox\\Documents\\FF\\InputsAll.txt";
            //oUrl.ExportedLinkPath = "C:\\Users\\joshua\\Sync\\Dropbox\\Documents\\FF\\InputsAll.txt";
            //oUrl.GetLinks("C:\\Users\\joshua\\Sync\\Dropbox\\Documents\\FF\\input");
            oUrl.GetLinks(sPath);
            oUrl.WriteLinks(oUrl.UrlList);
            lblStatus.Text = "Finished";
        }