美剧,电影等命名问题程序

我们经常下载一下美剧,有好多剧集,有很多收藏者收藏时发现文件名中有很多广告宣传信息,我特意写了一个程序,解决这一个问题,程序有以下功能:

1.删除文件中的特定字符

2.插入特定文件字符

3.重命名文件名

4.列出所有文件

注意及使用方法:

1.本程序采用codeblocks GCC编译器编译
2.运行时需将libgcc_s_dw2-1.dll 和 libstdc++-6.dll 放入C:\Windows下
3.将命名神器.exe 放入需处理的文件件内,程序会默认对当前文件夹内的所有文件(不包括子文件夹和子文件内的文件)进行处理
4.按程序提示操作即可

附件地址:http://download.csdn.net/detail/zhuihunmiling/9388595

警告:本计算机程序受著作权法和国际条约保护,如未经授权而擅自复制或传播本程序,,将受到严厉的民事制裁和刑事制裁,并将在法律许可的最大程度内受到起诉。

/**
*追魂密令工作室倾情编制
*[email protected]
*/
#include
#include 
#include
#include 
#include
#include
#include
using namespace std;
#define MAXPATH 255
#define MAXSIZE 255
bool compare(string s1,string s2)
{
    if(s1.size()0&&s_all.find_first_of(",")0&&s_all.find_first_of(",")=0&&s_all.find_first_of(",")=0&&filename.find(s_delete)=regulation.size())
    {
        cout<<"没有找到#位置!"<>c;
    if(c!='Y'&&c!='y') return 0;
    int countn=0;
    int i=1;
    string s_all=getfilelist(path);
    while(s_all.find_first_of(",")>=0&&s_all.find_first_of(",")=0&&s_all.find_first_of(",")>myselect;

    while(myselect!=0)
    {
        string s_all="";
        char c='y';
        switch(myselect)
        {
            case 1:
                cout<<"请输入要删除的字符串_:";
                getchar();
                getline(cin,s_all);
                cout<<"File renamed number:"<>c;
                cout<<"File renamed number:"<>myselect;
    }
    system("pause");
    return 0;
}


你可能感兴趣的:(c语言,文件重命名)