Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h> //pound sign printf()
- #include <stdlib.h> // system()
- int main()
- {
- system("cls"); // This line is used to clear the console window
- printf("Creating Zip file Hello.zip\n");
- system("7za a hello.zip *.*"); // This line is used to pause the console window until a key is pressed
- printf("Zip file created successfully.\n");
- printf("Press any key to See File List...\n");
- system("pause"); // This line is used to pause the console window until a key is pressed
- system("dir"); // This line is used to display the list of files in the current directory
- printf("Press any key to exit...\n");
- system("pause"); // This line is used to pause the console window until a key is pressed
- printf("Exiting...\n");
- system("cls"); // This line is used to clear the console window
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement