Skip to content

tien-tq200540/DOS-command-Clone-Cs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DOS command Clone in Csharp .NET Core

Description

  • 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.

Notes:

  • 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.

DOS command list (Progress: 11/60)

  1. DIR - Display a list of files and directories.
  2. COPY - Copy the contents of a text file to another file.
  3. DEL - Delete a file.
  4. MKDIR - Create a new empty directory.
  5. RMDIR - Remove a directory and, if indicated, any subdirectories and files in the directory.
  6. MOVE - Move or rename files and directories.
  7. RENAME/REN - Rename a file or a directory.
  8. CLS - Clear the console screen.
  9. TYPE - Display the contents of a text file.
  10. ATTRIB - Change the attributes of files or directories.
  11. XCOPY - Copy files and directory trees.
  12. TREE - Display the directory structure in a tree format.
  13. FC - Compare two files or a file and a directory.
  14. FIND - Search for a text string in a file.
  15. FINDSTR - Search for a text string in a file with more advanced conditions.
  16. CD - Change the current working directory.
  17. CHDIR - Change the current directory or display its name.
  18. ECHO - Display a text message or toggle the echoing of commands.
  19. SET - Display, set, or remove environment variables.
  20. PAUSE - Pause the execution of a program and display a message.
  21. REM - Add comments in a batch file or script.
  22. EXIT - Exit the cmd.exe program or the current script.
  23. PING - Test network connectivity to an IP address or domain name.
  24. TRACERT - Trace the path of packets to an IP address or domain name.
  25. NET - Manage network connections and shared resources.
  26. IPC - Manage Interprocess Communication (IPC) connections.
  27. NETSTAT - Display current network connections and network protocol information.
  28. IPCONFIG - Display the network configuration of the computer.
  29. HOSTNAME - Display the computer's hostname.
  30. WHOAMI - Display information about the current user.
  31. TASKLIST - Display a list of running processes.
  32. TASKKILL - Terminate one or more processes.
  33. SCHTASKS - Manage scheduled tasks.
  34. SYSTEMINFO - Display information about the system configuration.
  35. SHUTDOWN - Shut down, restart, or log off a user.
  36. SC - Manage services (Service Control).
  37. ASSOC - Display or change file extension associations.
  38. FTYPE - Display or change file types associated with file extensions.
  39. START - Launch a program or open a document.
  40. RUNAS - Run a program with a different user account.
  41. FORMAT - Format a disk or partition.
  42. DISKPART - Manage disks, partitions, and volumes.
  43. CHKDSK - Check and repair disk errors.
  44. DEFRAG - Defragment a disk.
  45. DISKCLEANUP - Clean up a disk by removing unnecessary files.
  46. SFC - Check and repair corrupted system files.
  47. BOOTREC - Troubleshoot boot issues.
  48. POWERCFG - Manage power settings.
  49. WMIC - Windows Management Instrumentation Command-line.
  50. GPRESULT - Display the result of group policy applied to a computer or user.
  51. EVENTVWR - Open the Windows Event Viewer.
  52. REG - Manage the Windows registry.
  53. NBTSTAT - Display NetBIOS protocol statistics and current connections.
  54. ARP - Display or modify the ARP table for network interfaces.
  55. NSLOOKUP - Query DNS servers.
  56. ROUTE - Display or modify the IP routing table.
  57. TELNET - Connect to a remote Telnet server.
  58. FTP - Transfer files to and from an FTP server.
  59. TFTP - Transfer files using the Trivial File Transfer Protocol (TFTP).
  60. CMDKEY - Manage stored credentials.

Contact

About

Clone 60 DOS command with C# .NET Core

Topics

Resources

Stars

Watchers

Forks

Languages