Posts

Showing posts from May, 2022

Commands To Remove Folder Using Windows Powershell

Image
Accidently removes an important document If you are a Unix person trying to operate Windows, you probably gonna typed RM -RF SOME-FOLDER in Powershell and expect it to remove a folder. But unfortunately, it won’t work on windows, even In the older versions of the windows terminal system. To delete a directory you’ll have to use rmdir /s /q the-folder-name.  But again it won't work anymore on Windows PowerShell. You have to learn lots of power shell commands.  Solutions To remove some folders on your computer using windows PowerShell, execute this command line below: remove-item -recurse -force THE_FOLDER_NAME The recurse is equivalent to “-r” in Linux. It forces the commands to remove the nested folder. And the -force is similar to ‘-f’ in Linux. To force delete the file if some other program is holding it. Those commands also can be applied to remove files. But without -recurse and -force options. That command is similar to the Unix rm -rf folder.  And in the older Windo...

Popular posts from this blog

ERROR 1348 Column Password Is Not Updatable When Updating MySQL Root Password

How To Create Spring Boot Project Using Netbeans

Spring Kafka - How to use ReplyingKafkaTemplate send and reply synchronously