Skip to content

Commit c840948

Browse files
committed
Done some cleaning of files and include Makefile
1 parent 8adf9c3 commit c840948

26 files changed

+523
-579
lines changed

CommandConsole.exe

0 Bytes
Binary file not shown.

MainCommands.h

+492
Large diffs are not rendered by default.

Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CommandConsole: main.c
2+
gcc main.c -o CommandConsole

README.md

+28-21
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,29 @@ The main program is written in the main.c file and the functions written there a
1111

1212
<br/>
1313

14-
### The list of files are:
15-
- Calculator: The code is written in calc_file.h
16-
- Change Current Working Directory: The code is written in ccwd_file.h
17-
- Clear the Screen: The code is written in clr_file.h
18-
- Show the date: The code is written in date_file.h
19-
- Make new directory: The code is written in file_mkdr1.h
20-
- Help(which show all the function to be run): The code is written in help_file.h
21-
- List all the files and directories: The code is written in list_file.h
22-
- Create a new file: The code is written in make_file.h
23-
- Print the current working directory: The code is written in pcwd_file.h
24-
- Remove the file: The code is written in remo_file.h
25-
- Remove the directory file: The code is written in rmdr_file.h
26-
- To append something in a file: The code is written in wrta_file.h
27-
- To write something in a file: The code is written in wrte_file.h
28-
- To print the content of the file: The code is written in open_file1.h
29-
- To change the username and password: The code is written in change_root.h
30-
- To copy the contents of one file to another file: The code is written in copy_file.h
31-
- To print the information of OS: The code is written in system_info.h
32-
- To print the thing you wanted: The code is written in echo_file.h
33-
- To print username & password: The code is written in userinfo.h
34-
- To rename the file: The code is written in rename_file.h
14+
### The list of functions are:
15+
- Calculator: calc
16+
- Change Current Working Directory: ccwd
17+
- Clear the Screen: clr
18+
- Show the date: date
19+
- Make new directory: mkdr
20+
- Help(which show all the function to be run): help
21+
- List all the files and directories: list
22+
- Create new file: make
23+
- Print the current working directory: pcwd
24+
- Remove the file: remo
25+
- Remove the directory file: rmdr
26+
- Append something in a file: wrta
27+
- Write something in a file: wrte
28+
- Print the content of the file: read
29+
- Change the username and password: cnge
30+
- Copy the contents of one file to another file: copy
31+
- Print the information of OS: sys
32+
- Print the thing you wanted: echo
33+
- Print username & password: root
34+
- Rename the file: rname
35+
36+
All the functions are written in **MainCommands.h**
3537

3638
## Things to remember while executing the application:
3739
- Provide the correct command or else it will show "Error: Wrong Command. Run command which is there. Type help for information".
@@ -42,6 +44,11 @@ The main program is written in the main.c file and the functions written there a
4244
- I don't know whether it can run in other softwares(like- linux, etc) as I have done this code in windows laptop. I want you all to test this.
4345
- Anyother modification will be considered.
4446

47+
Makefile is also included. The command of make file is:-
48+
```
49+
mingw32-make
50+
```
51+
4552
# <b>Getting Started<b/>
4653

4754
If you have docker installed then it is very good. The steps to execute the software using docker are as follows:-

calc_file.c

-67
This file was deleted.

ccwd_file.c

-21
This file was deleted.

change_dir_path.c

-4
This file was deleted.

change_root.c

-28
This file was deleted.

clr_file.c

-14
This file was deleted.

copy_file.c

-44
This file was deleted.

date_file.c

-12
This file was deleted.

echo_file.c

-11
This file was deleted.

file_mkdr1.c

-26
This file was deleted.

help_file.c

-29
This file was deleted.

list_file.c

-25
This file was deleted.

main.c

+1-21
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,7 @@ Language: C
33
*/
44

55
//header files(some are inbuilt and some header files I have created to organize different codes)
6-
#include "rename_file.c"
7-
#include "userinfo.c"
8-
#include "echo_file.c"
9-
#include "system_info.c"
10-
#include "copy_file.c"
11-
#include "change_root.c"
12-
#include "change_dir_path.c"
13-
#include "help_file.c"
14-
#include "open_file1.c"
15-
#include "file_mkdr1.c"
16-
#include "rmdr_file.c"
17-
#include "make_file.c"
18-
#include "wrta_file.c"
19-
#include "wrte_file.c"
20-
#include "list_file.c"
21-
#include "calc_file.c"
22-
#include "pcwd_file.c"
23-
#include "clr_file.c"
24-
#include "ccwd_file.c"
25-
#include "remo_file.c"
26-
#include "date_file.c"
6+
#include "MainCommands.h"
277
#include <stdio.h>
288
#include <stdlib.h>
299
#include <string.h>

0 commit comments

Comments
 (0)