Home > Back-end >  Using c language simulation CMD command input and then call winrar always failed can you tell me how
Using c language simulation CMD command input and then call winrar always failed can you tell me how

Time:09-24

Idea is to use c language to access the command line version of winrar, used to perform the decompression, but always prompt "rar. Exe" not internal or external command, nor can run the program or batch file, but something is, the output end, the system automatically open I want to unzip the zip file interface, yao said not to run the application, the results are out winrar interface, but just can't perform rar. Exe operation, could you tell me how to set up, you should
 
# include
# include
Void un_cmdrar ()
{
Char user_path [500].
Char rarsoft_path_1 [30]={" CD d: \ \ program \ \ zipexe "};//stitching command
Char rarsoft_path_2 [30]={" rar. Exe x "};//stitching command
Printf (" the user write rar power and the file path \ n ");
Gets (user_path);//get the user input the compressed file path where
//CMD command
System (" d: ");
System (rarsoft_path_1);
System (rarsoft_path_2);
System (user_path);

}
Void main ()
{
Un_cmdrar ();
}

CodePudding user response:

The top QWWWW,

CodePudding user response:

The computer never lie
Is merely a step-by-step
Windows can't find an executable program
With the default program to open the file

Isn't it right computer won't lie just discharge

CodePudding user response:

Master, I see, thank you for your advice,
  • Related