CommandPrompt_CSharp is a command-line tool for managing files and directories with various operations. It includes functionalities to create, move, delete, clone files and directories, and clean duplicate files based on their hashes.
- Change Directory (
cd): Change the current working directory. - Show Directories (
showDirs): List all directories within the current directory. - Create File (
createFile): Create a new file in the current directory. - Create Directory (
createDir): Create a new directory in the current directory. - Move File (
moveFile): Move a file from one location to another. - Move Directory (
moveDir): Move a directory from one location to another. - Delete File (
deleteFile): Delete a specified file. - Delete Directory (
deleteDir): Delete a specified directory. - Clean Clones (
cleanClones): Remove duplicate files within the current directory. - Clear Console (
cls): Clear the console screen. - Show Commands (
showCommands): Display a list of all available commands. - Show Files (
showFiles): List all files within the current directory. - Clone File (
cloneFile): Create a duplicate of a specified file. - Clone Directory (
cloneDir): Create a duplicate of a specified directory.
- Clone the repository:
git clone https://github.com/yourusername/CommandPrompt_CSharp.git cd CommandPrompt_CSharp - Build the project:
dotnet build
- Navigate to the project directory and run the application:
dotnet run
- Enter commands as prompted. Type
showCommandsto see the list of available commands.
Change the current working directory.
cdPrompts for the new path.
List all directories within the current directory.
showDirsCreate a new file in the current directory.
createFilePrompts for the file name.
Create a new directory in the current directory.
createDirPrompts for the directory name.
Move a file from one location to another.
moveFilePrompts for the source file path and the destination file path.
Move a directory from one location to another.
moveDirPrompts for the source directory path and the destination directory path.
Delete a specified file.
deleteFilePrompts for the file path.
Delete a specified directory.
deleteDirPrompts for the directory path.
Remove duplicate files within the current directory.
cleanClonesClear the console screen.
clsDisplay a list of all available commands.
showCommandsList all files within the current directory.
showFilesCreate a duplicate of a specified file.
cloneFilePrompts for the file path.
Create a duplicate of a specified directory.
cloneDirPrompts for the directory path.
Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.