Logo

Delete files and folders using Command Prompt

There are times when you might find it difficult to delete folders or files in File Explorer and it could be due to many reasons. One of these reasons can be attributed to the failure that can lock down the folders or files which prevents you from deleting them. In this kind of situation, you can utilize the Command Prompt to delete the folders, sub-folders, and files on your computer, and in this post, you will be guided on how exactly you can do that.

Before you proceed, keep in mind that when you use the Command Prompt incorrectly, it might affect your computer and render it inoperable, thus, you must be extra careful when executing the steps given below and it would also be better if you create a System Restore Point. After that, refer to the following instructions.

Step 1: First, in the Start Search, type “command prompt” in the field and from the search results, right-click on Command Prompt and then select the “Run as administrator” option to open Command Prompt with admin privileges.

Step 2: After opening Command Prompt as admin, navigate to the folder where the file you want to delete is located. Note that you have to execute the “cd” or the change directory command.

Step 3: Next, execute the following command in Command Prompt:

DEL /F /A <file path with extension>

Note: In the given command, “/F” is the force delete command, while “/A” is the command that selects the files with the ready for archiving attribute.

Step 4: After that, go to the location where you can find the folder you want to delete by using the “cd” command again. And then execute the following command right after:

RD /S <folder path>

Note: In the given command, “RD” is the command that removes the folder from the directory, while “/S” removes all of its sub-folders and files. On the other hand, if you also use the “/Q” parameter, you won’t see the “Y/N” confirmation but if you didn’t use it, then simply tap the Y button to proceed.

Do You Need Help with Your Device?

Our Team of Experts May Help
Troubleshoot.Tech Experts are There for You!
Replace damaged files
Restore performance
Free disk space
Remove Malware
Protects WEB browser
Remove Viruses
Stop PC freezing
GET HELP
Troubleshoot.Tech experts work with all versions of Microsoft Windows including Windows 11, with Android, Mac, and more.

Share this article:

You might also like

0x8019019a when setting up Yahoo Mail
The error code 0X8019019A is shown when a user fails to add his Yahoo account to the Mail app due to the outdated or corrupt installation of the Mail app. Not using an App-specific but a normal Yahoo account password may also result in the error at hand. In this guide, we will show you how to effectively fix this error so you can set up Yahoo mail.
  1. Reboot PC

    Perform a restart of your system to rule out a temporary glitch in the system. Also, check if you can successfully access your email through a web browser using the same credentials as you are using with the Mail app. Additionally, make sure that no VPN or proxy server is being used to access the internet (VPN/proxy may work fine with the web version of Yahoo mail but may hinder the access through a mail client).
  2. Update Windows and the Mail App to the Latest Build

    If your system is not updated to the latest build it can create incompatibility between the OS modules. Updating the Windows and Mail app of your system to the latest build may solve the problem.
  3. Re-add the Yahoo Account to the Mail App

    The Yahoo account issue could be a result of a temporary glitch in the communication modules of the system. The glitch may get cleared if you remove and then re-add the Yahoo account to the Mail app.
  4. Reset the Mail App to the Defaults

    You may fail to add the Yahoo account to the Mail app if the installation of Mail itself is corrupt. In this scenario, resetting the Mail app to the defaults may solve the problem.
  5. Generate an App Password and Use it to Add the Yahoo Account to the Mail App

    Yahoo has implemented tons of security features to its accounts. One such feature is the use of app-specific passwords for less secure apps like the Mail app. If your Yahoo username or password is not working with the Mail app, then using the App-specific password may solve the problem.
Read More
Windows got stuck on Preparing Windows screen
You might have experienced a situation when you restarted your Windows 10 PC after an upgrade and you tried logging into your account but only a screen with a message saying, “Preparing Windows”. If the screen only stays that way, this indicates that Windows 10 is trying to complete the upgrade or waiting for some files to load up so that you can use your account. Some users also reported that when they tried logging into their accounts, they also get the same message on their screens. To resolve this issue, read on as this post will show you what you can do if your Windows 10 PC is stuck on the “Preparing Windows” screen. A lot of users have tried logging back into their account once more but to no avail as the same screen still greets them. And even when they tried the Ctrl + Alt + Del combo, it still didn’t work. This only goes to show that your account might somehow be corrupted.

Option 1 – Try booting your PC into Safe Mode

The first thing you can do to resolve the issue is to try booting your computer into Safe Mode and then log in using an Admin account. If it seems like your admin account has caused the problem, you need to create an admin account first and then log in after you reboot into the account and then log off. After that, restart your PC normally and check if the problem’s resolved or not. If not, refer to the next given option below.

Option 2 – Try to repair your corrupted profile via Registry

In this second option, you can try to repair the corrupted profile using the Registry but before you proceed, make sure to create a System Restore Point and then follow the steps below.
  • Tap the Win + R keys to open the Run dialog box.
  • Then type “regedit” in the field and hit Enter or click OK to open the Registry Editor.
  • Next, go to this registry key: ComputerHKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionProfileList
  • Once you’ve opened the registry key, you should see a list of all the user profiles on your computer. Now click on each S-1-5 folder and look for the “ProfileImagePath” entry and double-click on it to check which user account it is related to. You will see a path like “CUsersACK” where “ACK” is the username.
  • You should know which among the user account is corrupted. Just look for a key named “RefCount” and change its Value data to “0” and click OK. And if it isn’t available, simply right-click on the right pane and create it.
  • After that, double click on the key named “State” and make sure that the Value data is “0” and click OK.
  • Exit the Registry Editor and restart your computer to apply the changes made.

Option 3 – Try running the System File Checker

System File Checker or SFC is a built-in command utility that helps in restoring corrupted files as well as missing files. It replaces bad and corrupted system files with good system files that might be the cause why your screen is stuck at “Preparing Windows”. To run the SFC command, follow the steps given below.
  • Tap Win + R to launch Run.
  • Type in cmd in the field and tap Enter.
  • After opening Command Prompt, type in sfc /scannow
The command will start a system scan which will take a few whiles before it finishes. Once it’s done, you could get the following results:
  1. Windows Resource Protection did not find any integrity violations.
  2. Windows Resource Protection found corrupt files and successfully repaired them.
  3. Windows Resource Protection found corrupt files but was unable to fix some of them.

Option 4 – Try to repair hard disk errors using the Chkdsk utility

You can also run the Chkdsk utility to resolve the problem. If your hard drive has issues with integrity, the update will really fail as the system will think that it’s not healthy and that’s where the Chkdsk utility comes in. The Chkdsk utility repairs hard drive errors that might be causing the problem.
  • Open Command Prompt with admin privileges.
  • After opening Command Prompt, execute the commands listed below, and don’t forget to hit Enter right after you type in each one of them.
  • chkntfs /t
  • chkntfs /t:10
Read More
Windows Update Keeps Turning Off in Windows
Keeping your system updated is a must and Windows updates are definitely a great way to do that. These updates are essential since they provide important security and various fixes for bugs in your Windows 10 computer. However, there are plenty of instances when you encounter issues with Windows Updates and one of them is when the Windows Updates turn off automatically at random times. Some users reported that they saw a notification about Windows Updates being turned off. Note that the issue is not with the update itself since many users turned on the Windows Update and the system was properly updated. The issue is that the Windows Updates turned off all by itself. There could be several reasons why the Windows Updates turned off by themselves. It could be due to the antivirus program installed on your computer. Antivirus programs are known to cause issues with other programs, Windows updates components included. This can occur due to false positives as well as odd compatibility issues. Aside from antivirus programs, the Windows Update service itself could also be the root cause of the problem. There could be a corrupted file in the Windows Update folder or it could be that the Windows Update service wasn’t started properly. Any of these issues can be resolved by following the troubleshooting options given below. Make sure to follow each one of them carefully for better results.

Option 1 – Try to disable your antivirus program

Disabling the antivirus program or any security software installed in your computer is always a good idea you can try when the Windows Update process does not go smoothly. So before you try updating your computer again, make sure to disable the antivirus or security program and once the Windows Update is done, don’t forget to enable the antivirus program back again.

Option 2 – Try to make some changes in the Registry

  • Tap the Wins key once and type in “command prompt” in the field.
  • From the search results, right-click on Command Prompt and select the “Run as administrator” option to run it with admin privileges.
  • Next, type the following command and tap Enter:
reg add "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdateAuto Update" /v AUOptions /t REG_DWORD /d 0 /f
  • After that, type the following command and hit Enter again:
sc config wuauserv start= auto
 The command you entered will set the Windows Update to auto so you should be good to go.

Option 3 – Try to reset the Windows Update components

If by any chance that the second option didn’t work, resetting the Windows Update components could also help you resolve the problem. How? Refer to the following steps:
  • Open Command Prompt with admin privileges.
  • After that, type each one of the following commands and hit Enter after you key in one after the other.
    • net stop wuauserv
    • net stop cryptsvc
    • net stop bits
    • net stop msiserver
Note: The commands you entered will stop the Windows Update components such as Windows Update service, Cryptographic services, BITS, and MSI Installer.
  • After disabling WU components, you need to rename both the SoftwareDistribution and Catroot2 folders. To do that, type each one of the following commands below, and don’t forget to hit Enter after you type one command after the other.
    • ren C:WindowsSoftwareDistribution SoftwareDistribution.old
    • ren C:WindowsSystem32catroot2 Catroot2.old
  • Next, restart the services you’ve stopped by entering another series of commands. Don’t forget to hit Enter after you key in one command after the other.
    • net start wuauserv
    • net start cryptsvc
    • net start bits
    • net start msiserver
  • Close Command Prompt and reboot your PC.

Option 4 – Run the Windows Update Troubleshooter

Running the built-in Windows Update troubleshooter is one of the things you can first check out as it is known to automatically resolve any Windows Update errors. To run it, go to Settings and then select Troubleshoot from the options. From there, click on Windows Update and then click the “Run the troubleshooter” button. After that, follow the next on-screen instructions and you should be good to go.
Read More
This Publisher has been blocked
There are times when you try to open a file, an executable file for instance, but were unable to do so since you encounter an error in an Open File – Security Warning dialog box that says, “This publisher has been blocked from running software on your machine, You must unblock this publisher to run this software”. This kind of error is most likely thrown by your operating system because it considers the file to be unsafe and could potentially harm your computer. However, if you’re certain that the file is harmless, read on as this post will walk you through fixing the error so you can open the file without getting an error. There are various options you can check out to fix the error. You may run the program using Command Prompt or unblock it using File Properties. You could also try turning off SmartScreen or use the unblock file command in Windows PowerShell.

Option 1 – Try running the program via Command Prompt

  • Tap the Win + R keys to open the Run dialog box and type “cmd” in the field and hit Enter to open Command Prompt.
  • Next, tap the Shift key and right-click on the program or the executable file, and then select the “Copy as path” option.
  • After that, paste this path in the Command Prompt window and tap Enter to open the program.

Option 2 – Try to unblock the file using File Properties

  • Right-click on the file you were trying to open and select Properties.
  • Next, click the Unblock button and then click on the Apply and OK buttons.
  • You should now be able to open or access the file without getting the error.

Option 3 – Turn off SmartScreen

The next thing you can do is to turn off SmartScreen temporarily. All you have to do is open the Windows Defender Security Center and from there, go to the App & browser control section. After that, click on the radio button for Off under Check apps and files. Once you’re done, try opening the file again. Don’t forget to enable the SmartScreen back on.

Option 4 – Try to use the Unblock-File command in PowerShell

You might also want to utilize the Unblock-File command in Windows PowerShell as it will unblock the file so you can open it. To execute this command, follow these steps:
  • Tap the Win + X keys and then click on Windows PowerShell.
  • After opening PowerShell, type or copy and paste this command and tap Enter to execute it: Get-ChildItem -Path 'C:Users<username>Downloads' | Unblock-File
  • The command you entered will unblock all the files in the Downloads folder, assuming that’s where the file you were trying to open is stored. If it’s not, then replace the path with the path where the file is located. Take note to also replace “<username>” with your Username.
  • Now check if the file has been unblocked by accessing or opening it.
Read More
Microsoft Designer, a new app from MS

Microsoft Designer, a new application developed by Microsoft will bring design backed with DALL-E 2, an AI image creation open-source software. The new app is shown as a dedicated graphic design tool that will help you in the creation of stunning social media posts, invitations, digital postcards, graphics, and more, all in a flash.

Use of the application will be by typing headings and then typing text into the prompt to generate a background image. Since Microsoft uses DALL-E 2 for image creation output should be fairly good but if you wish you will be able to use your own images instead of using AI to generate one.

microsoft designer

The designer will be a free application once it is ready and it already has a web preview version, also free but with a waitlist. There will be premium features inside the app once it is released that will be available to Microsoft 365 Personal and Family subscribers. Microsoft also wants to add a version of a designer directly to the Edge browser as well.

Read More
How to Fix Error 400

Error 400 - What is it?

Error 400 is a bad request error that displays in the internet browser like a web page. It pops up when the web page you’ve requested cannot be found. Error 400 may be displayed in one of the following formats on the computer screen:
  • ‘400 Bad Request’
  • Bad Request - Invalid URL"
  • "HTTP Error 400 - Bad Request"
  • "Bad Request. Your browser sent a request that this server could not understand.”
  • "HTTP Error 400. The request hostname is invalid."
  • "400 - Bad request. The request could not be understood by the server due to malformed syntax. The client should not repeat the request without modifications."

Solution

Restoro box imageError Causes

Error 400 can be generated due to multiple reasons. These include:
  • Wrong URL
  • Browser cookies
  • Outdated DNS cache
Though this error code is not fatal like the blue screen of death and runtime errors nonetheless it is still advisable to fix it to access your desired website without any inconvenience.

Further Information and Manual Repair

Here are some of the best ways to fix error 400 on your PC without any professional help. Try these methods to resolve error 400:

Method 1

This might come to you by surprise that the most common cause for a 400 Bad Request error is because the URL of the website was typed wrong. So, first things first make sure the URL you’ve inserted is correct. If the URL typed is correct, then try other methods illustrated below.

Method 2

Sometimes error 400 may pop up due to outdated DNS records. DNS cache stores the location (IP addresses) of web servers that contain pages that you’ve viewed recently. You are unable to access the site if the location of the webserver changes before the entry in your DNS cache updates. If this is the error cause then simply clear your DNS cache to resolve. Follow these steps to clear the DNS cache on Windows 8.
  • Press Win+X to open the WinX menu.
  • Now ‘right click’ on command prompt and select RUN as Administrator. Enter the following command:
  • ipconfig /flushdns
If the command was successful, you will see the following message: Windows IP configuration successfully flushed the DNS Resolver Cache. This method will hopefully repair error 400 on your computer screen.

Method 3

Another reason for error 400 can be browser cookies. Many sites report error 400 when a cookie it reads is corrupt or too old. In such a situation it is advisable to clear your browser cookies. You can do it manually but it can be time-consuming virtually because the steps involved in deleting cookies differ considerably depending on what web browser you’re using. So, to avoid the hassle it is advisable to download Reimage to remove browser cookies immediately. This is a user-friendly PC Fixer deployed with a powerful registry cleaner. It removes all obsolete and unnecessary files from your PC including junk files, internet history, and cookies in seconds. Click here to download Restoro.
Read More
How to Fix Stop Error 7B

What is Stop Error 7B?

Stop error 7B is a blue screen of death error code that occurs during Windows XP setup or after installation. The error message is displayed in either of the following formats:
  • STOP: 0x0000007B (parameter1, parameter2, parameter3, parameter4)
  • INACCESSIBLE_BOOT_DEVICE
  • ‘A problem has been detected and Windows has been shut down to prevent damages’
  • Setup has encountered a fatal error that prevents it from continuing.
  • Setup cannot continue. Power down or reboot your computer now.

Solution

Restoro box imageError Causes

There is no one particular cause for this error. The Stop error 7B may be triggered due to multiple reasons. These include:
  • Boot Sector Viruses
  • Device Driver Issues
  • Poor Windows XP installation
  • Registry Corruption
If you come across this error code on your PC, it is advisable to fix it right away particularly because it is a blue screen of death error that can cause severe damages to your system. It can lead to system failure, crash, and valuable data loss.

Further Information and Manual Repair

Here we’ve listed for you the best PC repair solutions to resolve and fix stop error 7B.

Cause: Boot Sector Viruses

Solution: Stop error 7B can occur when infected with a boot sector virus. If this is the cause, then first download a powerful antivirus on your system. After downloading it, run it to scan your PC for viral infection. Immediately delete the viruses if found. However, if the virus is too powerful, the antivirus may fail to remove it. In such an event, you will have to repartition and format your hard disk and then later reinstall Windows XP.

Cause: Device Driver Issues

Solution: If the boot controller is not properly configured or the driver is not updated, Stop error 7B can occur.  When this happens, simply restart your system and press F8 to go to the advanced boot options. Here choose the Last Known Good Configuration option. After that boot into Windows and then perform a system restore. Now go to the start menu and type Device Manager in the search box. To access the Device Manager window it may prompt you to enter an administrator password, insert it to proceed. Now go to Device Manager and perform a driver rollback to reinstall the drivers generating this stop error. By following these simple steps you can easily resolve device driver and configuration issues.

Cause: Poor Windows XP Installation

Solution:  In this case, you will have to perform a Windows start-up repair. This can be done by booting Windows XP from CD. Simply press enter at setup Windows Screen when prompted. Then press R to repair Windows XP installation. This procedure copies the original Windows files over the bad ones.

Cause: Registry Corruption

Solution: Sometimes the stop error 7B is also triggered by the registry corruption. When this happens, it is advisable to download and run Restoro software for PC scan and repair. Restoro is a powerful, advanced, and highly functional registry cleaner. It is deployed with intuitive algorithms that detect registry issues and errors like Stop error 7B on your system in seconds.  It wipes out clutter from your hard disk, repairs damaged files and the corrupted registry. It is safe, efficient, and bug-free. It is also compatible with all Windows versions. In addition to this, it is also embedded with other utilities like an antivirus, a system optimizer, and Active X controls, and a class ID scanner. Click here to download Restoro and resolve to stop error 7B on your PC immediately!
Read More
How to switch to Dark mode in Windows 11
Dark modeWindows 11 is coming soon, from its typical view and color scheme, Windows 11 will natively support dark mode. The dark mode is very popular in many applications today, some large companies like Adobe, Autodesk, and many more have already adopted a dark color scheme for their software so it is logical for others to follow and Microsoft is aboard for it. The dark mode itself has its benefits, for people who work on computer for longer period of time dark mode inside applications will throw less white and blue light on their eyes making workhours easier and pleasant on them. As a person who does indeed spend a lot of time in front of the screen, I would advise you to switch to dark mode regardless of the time that you spend with a computer, your eyes will be grateful.

Switching to Dark mode in Windows 11

  1. Open Windows 11 Settings by pressing ⊞ WINDOWS + I
  2. Click on Personalization on the left sidebar
  3. On the right side click on Color
  4. In color options click on the drop-down menu right next to Choose your color
  5. Select Dark
Your choice will be applied right away and you can safely close settings.
Read More
Mapi32.dll Outlook Error - Quick Fix

What is Mapi32.dll Outlook Error?

Mapi32.dll is a Windows Messaging Application Programming Interface that enables Windows to perform various email functions and launch messaging programs like Microsoft Outlook and Microsoft Office. The inability of the interface to execute email functions properly results in the Mapi32.dll Outlook Error. This error occurs mostly when you are attempting to upgrade the operating system to a new version.

Solution

Restoro box imageError Causes

The common causes of the Mapi32.dll Outlook Error during the OS upgrade are:
  • Damaged or Corrupt Outlook user profile
  • The software is overwritten by some other program
  • Outlook PST file corruption
The Mapi32.dll Outlook Error message is displayed in either of the following forms:
  • Mapi32.dll is missing
  • Cannot start Microsoft Office Outlook. Mapi32.dll is corrupt or the wrong version.
  • Mapi32.dll was not found
  • Mail is not installed

Further Information and Manual Repair

So, what if you experience this issue and how do you fix it? Well, first there is no need to panic as Microsoft has recognized this issue and provided adequate solutions to fix this problem in no time. However, to ensure the Mapi32.dll Outlook error is a quick fix, you must first understand the cause of the issue and the message displayed on the screen.
  1. Let’s say the errors occur because your Outlook profile is corrupt. In this scenario, the best solution is to create a new Outlook profile. Regardless of whether you have Windows Vista or XP, to create your new Outlook profile, first, you will have to click on the Control Panel, then User Account, and then Mail. Once you click on the Mail tab, the mail set up dialog box will open. In this dialog box there will be a ‘Show Profiles’ tab, click and then click the Add tab that appears next. Now type the name for your new Outlook profile and then click ‘OK’. After that, add an email account to go with the profile.
  2. If Mapi32.dll is missing or corrupt, you will have to run ‘Fixmapi.exe’ to resolve the problem. It is located in the System32 folder inside the Windows directory in Windows Explorer.
  • Therefore, first start Windows Explorer and then locate the following folder on your computer: C: /Program Files/Common Files/System/Msmapi1033
  • Now find Fixmapi.exe and double click it
  • After that locate the Mapi32.dll file and rename it to MSmapi32.old and press enter.
  • Restart your computer when finished.
A word of advice for computer users is to scan for viruses with an antivirus program or a registry cleaner regularly to prevent the Mapi32.dll Outlook error from occurring in the first place. Viruses often latch onto .dll files and corrupt them. It’s always best to have a forward-looking approach.
Read More
Fix Qualcomm Atheros Qca61x4a Driver Issue
Qualcomm Atheros Qca61x4a Driver is a software driver used in WI FI communication between OS and device itself. When this driver stops working usually it means loss of connection and no internet available. This error knows to comes frequently and repeat itself over long periods of time which makes it quite annoying. If you are one of the unlucky users of Windows who get this error please keep reading in order to eliminate it and continue working on your computer normally.
  1. Disable & Enable the Qualcomm Adapter Driver

    Press ⊞ WINDOWS + X to open the secret menu, click on the device manager. In device manager expand network adapters. Right-click on Qualcomm Atheros Qca61x4a wireless network adapter and click on disable Right-click on Qualcomm Atheros Qca61x4a wireless network adapter and click on enable
  2. Rollback the Qualcomm Adapter driver

    Press ⊞ WINDOWS + X to open the secret menu, click on the device manager. In device manager expand network adapters. Right-click on Qualcomm Atheros Qca61x4a wireless network adapter and click on properties Under properties, window click on Driver tab and left-click on Roll Back driver (if the option is greyed there is no previous driver, follow next step) Choose your reason and click on OK
  3. Update Qualcomm Atheros driver to the latest version

    Press ⊞ WINDOWS + X to open the secret menu, click on the device manager. In device manager expand network adapters. Right-click on Qualcomm Atheros Qca61x4a wireless network adapter and click on Update Driver
  4. Install the new driver in compatibility mode

    Right-click on the installer package and choose properties Go to the compatibility tab Choose compatibility settings and install.
Read More
1 2 3 171
Logo
Copyright © 2023, ErrorTools. All Rights Reserved
Trademark: Microsoft Windows logos are registered trademarks of Microsoft. Disclaimer: ErrorTools.com is not affiliated with Microsoft, nor claims direct affiliation.
The information on this page is provided for information purposes only.
DMCA.com Protection Status