25 |
remove(temp); |
remove(temp); |
26 |
|
|
27 |
strncat(strcpy(route_path,path),fno,3); |
strncat(strcpy(route_path,path),fno,3); |
28 |
if (LINUX_flag==1) strcat(route_path,"/tmp.dat"); |
strcat(route_path,"/tmp.dat"); |
|
if (LINUX_flag!=1) strcat(route_path,"\\tmp.dat"); |
|
29 |
|
|
30 |
if ((ffiot=fopen(route_path,"w+"))==0) |
if ((ffiot=fopen(route_path,"w+"))==0) |
31 |
/*************Create directory mmm*************************/ |
/*************Create directory mmm*************************/ |
32 |
{ |
{ |
33 |
if (LINUX_flag==1) strncat(strcat(strcat(strcat(strcpy(command,"mkdir "),path),name_route),"_"),fno,3); |
strncat(strcat(strcat(strcat(strcpy(command,"mkdir "),path),name_route),"_"),fno,3); |
|
if (LINUX_flag!=1) strncat(strcat(strcpy(command,"md "),path),fno,3); |
|
34 |
system(command); |
system(command); |
35 |
/**********************************************************/ |
/**********************************************************/ |
36 |
|
|
37 |
/*************Create directory Cln1************************/ |
/*************Create directory Cln1************************/ |
38 |
if (LINUX_flag==1) strcat(command,"/Cln1"); |
strcat(command,"/Cln1"); |
|
if (LINUX_flag!=1) strcat(command,"\\Cln1"); |
|
39 |
system(command); |
system(command); |
40 |
/**********************************************************/ |
/**********************************************************/ |
41 |
} |
} |
42 |
if (LINUX_flag==1) strcat(strncat(strcat(strcat(strcpy(name1,path),name_route),"_"),fno,3),"/Cln1/"); |
strcat(strncat(strcat(strcat(strcpy(name1,path),name_route),"_"),fno,3),"/Cln1/"); |
|
if (LINUX_flag!=1) strcat(strncat(strcpy(name1,path),fno,3),"\\Cln1\\"); |
|
43 |
strcat(strncat(strcat(strcat(strcat(name1,name_route),"_"),fno),ini_file,5),"_cln1Er.log"); |
strcat(strncat(strcat(strcat(strcat(name1,name_route),"_"),fno),ini_file,5),"_cln1Er.log"); |
44 |
|
|
45 |
if (LINUX_flag==1) strcat(strncat(strcat(strcat(strcpy(name2,path),name_route),"_"),fno,3),"/Cln1/"); |
strcat(strncat(strcat(strcat(strcpy(name2,path),name_route),"_"),fno,3),"/Cln1/"); |
|
if (LINUX_flag!=1) strcat(strncat(strcpy(name2,path),fno,3),"\\Cln1\\"); |
|
46 |
strcat(strncat(strcat(strcat(strcat(name2,name_route),"_"),fno),ini_file,5),"_mis_cln1.dat"); |
strcat(strncat(strcat(strcat(strcat(name2,name_route),"_"),fno),ini_file,5),"_mis_cln1.dat"); |
47 |
|
|
48 |
if (LINUX_flag==1) strcat(strncat(strcat(strcat(strcpy(cln1,path),name_route),"_"),fno,3),"/Cln1/"); |
strcat(strncat(strcat(strcat(strcpy(cln1,path),name_route),"_"),fno,3),"/Cln1/"); |
|
if (LINUX_flag!=1) strcat(strncat(strcpy(cln1,path),fno,3),"\\Cln1\\"); |
|
49 |
strcat(strncat(strcat(strcat(strcat(cln1,name_route),"_"),fno),ini_file,5),"_cln1.pam"); |
strcat(strncat(strcat(strcat(strcat(cln1,name_route),"_"),fno),ini_file,5),"_cln1.pam"); |
50 |
if (ffiot!=0) {fclose(ffiot); remove(route_path);} |
if (ffiot!=0) {fclose(ffiot); remove(route_path);} |
51 |
} |
} |