You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sb.Append("ls (Path) | List all files and folders in a directory\n");
26
+
sb.Append("mkdir [Path] | Creates a folder\n");
27
+
sb.Append("mkfile [Path] | Creates a file\n");
28
+
sb.Append("cp [InputPath] (OutputPath) | Copies a file\n");
29
+
sb.Append("mv [InputPath] [OutputPath] | Moves a file or folder\n");
30
+
sb.Append("rm (-r) [Path] | Removes a file or folder, -r means recursive removal\n");
31
+
sb.Append("system | Displays system information in a nice way\n");
32
+
sb.Append("script [ScriptPath] | Runs a script file with the .rls extention\n");
33
+
sb.Append("exec [PathToExe] | Executes an .EXE file\n");
34
+
sb.Append("open [PathToFile] | Opens a file with the standard app\n");
35
+
sb.Append("extr [PathToZip] (OutputFolder) | Extracts a zip file\n");
36
+
sb.Append("compr [Path] (OutputArchive) | Compresses a foler or file into a zip\n");
37
+
sb.Append("calc [Equation] | Calculates the given equation\n");
38
+
sb.Append("size [Path] | Gets the size of a folder\n");
39
+
sb.Append("peek [Path] | Prints all the text in a file\n");
40
+
sb.Append("wand [Path] | Lets you edit a file. CTRL + S to save. CTRL + Q to quit. CTRL + H to toggle syntax highlight. CTRL + D to duplicate line. \n");
41
+
sb.Append("listproc | Lists all running processes\n");
42
+
sb.Append("killproc [ID] | Lets you kill a process\n");
43
+
sb.Append("batch [CommandOrBatFile] | Lets you run any batch command or script file\n");
44
+
sb.Append("clear | Clears the console\n");
45
+
sb.Append("clear history | Clears the command history\n");
46
+
sb.Append("history | Displays command history with indexes\n");
47
+
sb.Append("!! | Runs the last command from the history file\n");
48
+
sb.Append("![number] | Runs the command from the history file with the corresponding index that is passed in number\n");
49
+
sb.Append("fcolor [Color] | Changes the text color of the console\n");
50
+
sb.Append("bcolor [Color] | Changes the back color of the console\n");
51
+
sb.Append("ftp [ip] [true/false] (username) (Password) | Starts an FTP/FTPS Connection\n");
52
+
sb.Append("ftp uploadFile [local path] [remote path] | Uploads a file to the FTP server\n");
53
+
sb.Append("ftp downloadFile [local path] [remote path] | Downloads a file from the FTP server\n");
54
+
sb.Append("ftp uploadDirectory [local path] [remote path] | Uploads a directory to the FTP server\n");
55
+
sb.Append("ftp downloadDirectory [local path] [remote path] | Downloads a directory from the FTP server\n");
56
+
sb.Append("ftp close | Terminates the connection to the FTP server\n");
57
+
sb.Append("ssh connect [host] [user] [password] | Opens a connection to the SSH host\n");
58
+
sb.Append("sshCom [SSH Command] | Executes an SSH command an returns the result\n");
59
+
sb.Append("ssh close | Terminates the connection to the SSH host\n");
60
+
sb.Append("help | Display help\n");
61
+
sb.Append("shutdown | Shuts down the computer\n");
sb.Append("ls (Path) | List all files and folders in a directory\n");
446
-
sb.Append("mkdir [Path] | Creates a folder\n");
447
-
sb.Append("mkfile [Path] | Creates a file\n");
448
-
sb.Append("cp [InputPath] (OutputPath) | Copies a file\n");
449
-
sb.Append("mv [InputPath] [OutputPath] | Moves a file or folder\n");
450
-
sb.Append("rm (-r) [Path] | Removes a file or folder\n");
451
-
sb.Append("system | Displays system information in a nice way\n");
452
-
sb.Append("script [ScriptPath] | Runs a script file\n");
453
-
sb.Append("exec [PathToExe] | Executes an .EXE file\n");
454
-
sb.Append("open [PathToFile] | Opens a file with the standard app\n");
455
-
sb.Append("extr [PathToZip] (OutputFolder) | Extracts a zip file\n");
456
-
sb.Append("compr [Path] (OutputArchive) | Compresses a foler or file into a zip\n");
457
-
sb.Append("calc [Equation] | Calculates the given equation\n");
458
-
sb.Append("size [Path] | Gets the size of a folder\n");
459
-
sb.Append("peek [Path] | Prints all the text in a file\n");
460
-
sb.Append("wand [Path] | Lets you edit a file. CTRL + S to save. CTRL + Q to quit. CTRL + H to toggle syntax highlight. CTRL + D to duplicate line. \n");
461
-
sb.Append("listproc | Lists all running processes\n");
462
-
sb.Append("killproc [ID] | Lets you kill a process\n");
463
-
sb.Append("batch [CommandOrBatFile] | Lets you run any batch command or script file\n");
464
-
sb.Append("clear | Clears the console\n");
465
-
sb.Append("clear history | Clears the command history\n");
466
-
sb.Append("fcolor [Color] | Changes the text color of the console\n");
467
-
sb.Append("bcolor [Color] | Changes the back color of the console\n");
468
-
sb.Append("ftp [ip] [true/false] (username) (Password) | Starts an FTP/FTPS Connection\n");
469
-
sb.Append("ftp uploadFile [local path] [remote path] | Uploads a file to the FTP server\n");
470
-
sb.Append("ftp downloadFile [local path] [remote path] | Downloads a file from the FTP server\n");
471
-
sb.Append("ftp uploadDirectory [local path] [remote path] | Uploads a directory to the FTP server\n");
472
-
sb.Append("ftp downloadDirectory [local path] [remote path] | Downloads a directory from the FTP server\n");
473
-
sb.Append("ftp close | Terminates the connection to the FTP server\n");
474
-
sb.Append("ssh connect [host] [user] [password] | Opens a connection to the SSH host\n");
475
-
sb.Append("sshCom [SSH Command] | Executes an SSH command an returns the result\n");
476
-
sb.Append("ssh close | Terminates the connection to the SSH host\n");
477
-
sb.Append("help | Display help\n");
478
-
sb.Append("shutdown | Shuts down the computer\n");
479
-
sb.Append("exit | Exits the shell");
480
-
481
-
AddTextToConsole(sb.ToString());
482
-
AddCommandToConsole(com);
483
-
SetInputPrefix();
484
-
}
485
-
486
449
publicvoidExecute(string[]tokens)
487
450
{
488
451
stringpath=GetPathType(tokens[1]);
@@ -529,19 +492,35 @@ public void OpenFile(string[] tokens)
0 commit comments