-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCommand.h
49 lines (36 loc) · 863 Bytes
/
Command.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#pragma once
#ifndef _COMMAND_H
#define _COMMAND_H
#include <iostream>
#include <unistd.h>
#include <stdlib.h>
#include <signal.h>
#include <windows.h>
#include <time.h>
#include <sys/types.h>
#include <psapi.h>
#include <tlhelp32.h>
#define MAX_CWD_LENS 128
#define MAX_BUFFER_SIZE 64
#define MAX_TOK_BUFSIZE 64
#define TOKEN_DELIMETERS " \t\r\n\a"
// char cur_directory[MAX_CWD_LENS];
/* Các câu lệnh thực hiện command */
int cd(char **args);
int cls(char **args);
int dir(char **args);
int echo(char **args);
int exit(char **args);
int help(char **args);
int mk_dir(char **args);
int del(char **args);
int date(char **args);
int time_cmd(char **args);
int pc(char **args);
int calc(char **args);
int runbat(char **args);
bool cmdCheck(char **args);
int execute(char ** args);
int size_of_command();
int printPrompt(char* cur_dir);
#endif