Windows Command
* To remove a directory, including all nested files and subdirectories, just use the /s flag:
# rmdir /s Subfolder
# rmdir <directory name> or rd<directory name>
# rd /s /q “path”
/S Removes all directories and files in the specified directory in addition to the directory itself. Used to remove a directory tree.
/Q Quiet mode, do not ask if ok to remove a directory tree with /S
# del /s foldername
# rd -r -include *.* -force somedir
* The /f flag to force delete the file :
# del /f “Read Only Test File.txt”
* To see a, well, tree, of all the nested files and folders
# tree /f
Mac Command
1. Run command to check installed software path : %AppData%
C:\Users\Admin\AppData\Roaming
2. Add Python to the Windows Path
3. How to create and run batch file on Windows 10
4. How To Make a BAT File In Three Simple Steps and Task Scheduler
Open file:
type file.txt
New file:
Way 1: type nul > file.txt
Way 2: echo This is a sample text file > sample.txt
Way 3: notepad myfile.txt
Edit content:
notepad file.txt
Copy
copy file1.txt file1Copy.txt
Rename
rename file1.txt file1_rename.txt
Delete file: del file.txt
start . ==> Open Window
type NUL > Readme.js
Notepad Readme.md
echo NUL > Sample.ts
How to Open an Explorer Window from the Command Prompt’s Current Directory