- A solution about cloning 60 DOS commands using C# .NET Core.
- Why 60 statements and no more?
- This is a project for .NET newbie.
- There are commands that cannot be cloned or do not make much sense when cloned.
- No try-catch-finally statement for better efficiency.
- Input format:
- No double-quotes or extra whitespace.
- File path or directory path.
- Results may be approximately 80% or more similar compared to the original version.
- No escape-characters or wildcard characters for simplicity.
DIR - Display a list of files and directories.COPY - Copy the contents of a text file to another file.DEL - Delete a file.MKDIR - Create a new empty directory.RMDIR - Remove a directory and, if indicated, any subdirectories and files in the directory.- MOVE - Move or rename files and directories.
RENAME/REN - Rename a file or a directory.CLS - Clear the console screen.TYPE - Display the contents of a text file.- ATTRIB - Change the attributes of files or directories.
- XCOPY - Copy files and directory trees.
TREE - Display the directory structure in a tree format.- FC - Compare two files or a file and a directory.
- FIND - Search for a text string in a file.
- FINDSTR - Search for a text string in a file with more advanced conditions.
- CD - Change the current working directory.
- CHDIR - Change the current directory or display its name.
- ECHO - Display a text message or toggle the echoing of commands.
- SET - Display, set, or remove environment variables.
- PAUSE - Pause the execution of a program and display a message.
- REM - Add comments in a batch file or script.
- EXIT - Exit the cmd.exe program or the current script.
- PING - Test network connectivity to an IP address or domain name.
- TRACERT - Trace the path of packets to an IP address or domain name.
- NET - Manage network connections and shared resources.
- IPC - Manage Interprocess Communication (IPC) connections.
- NETSTAT - Display current network connections and network protocol information.
- IPCONFIG - Display the network configuration of the computer.
HOSTNAME - Display the computer's hostname.WHOAMI - Display information about the current user.- TASKLIST - Display a list of running processes.
- TASKKILL - Terminate one or more processes.
- SCHTASKS - Manage scheduled tasks.
- SYSTEMINFO - Display information about the system configuration.
- SHUTDOWN - Shut down, restart, or log off a user.
- SC - Manage services (Service Control).
- ASSOC - Display or change file extension associations.
- FTYPE - Display or change file types associated with file extensions.
- START - Launch a program or open a document.
- RUNAS - Run a program with a different user account.
- FORMAT - Format a disk or partition.
- DISKPART - Manage disks, partitions, and volumes.
- CHKDSK - Check and repair disk errors.
- DEFRAG - Defragment a disk.
- DISKCLEANUP - Clean up a disk by removing unnecessary files.
- SFC - Check and repair corrupted system files.
- BOOTREC - Troubleshoot boot issues.
- POWERCFG - Manage power settings.
- WMIC - Windows Management Instrumentation Command-line.
- GPRESULT - Display the result of group policy applied to a computer or user.
- EVENTVWR - Open the Windows Event Viewer.
- REG - Manage the Windows registry.
- NBTSTAT - Display NetBIOS protocol statistics and current connections.
- ARP - Display or modify the ARP table for network interfaces.
- NSLOOKUP - Query DNS servers.
- ROUTE - Display or modify the IP routing table.
- TELNET - Connect to a remote Telnet server.
- FTP - Transfer files to and from an FTP server.
- TFTP - Transfer files using the Trivial File Transfer Protocol (TFTP).
- CMDKEY - Manage stored credentials.
- Gmail: tqtien157202@gmail.com