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
showCommands
to see the list of available commands.
Change the current working directory.
cd
Prompts for the new path.
List all directories within the current directory.
showDirs
Create a new file in the current directory.
createFile
Prompts for the file name.
Create a new directory in the current directory.
createDir
Prompts for the directory name.
Move a file from one location to another.
moveFile
Prompts for the source file path and the destination file path.
Move a directory from one location to another.
moveDir
Prompts for the source directory path and the destination directory path.
Delete a specified file.
deleteFile
Prompts for the file path.
Delete a specified directory.
deleteDir
Prompts for the directory path.
Remove duplicate files within the current directory.
cleanClones
Clear the console screen.
cls
Display a list of all available commands.
showCommands
List all files within the current directory.
showFiles
Create a duplicate of a specified file.
cloneFile
Prompts for the file path.
Create a duplicate of a specified directory.
cloneDir
Prompts 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.