ERROR_BAD_CURRENT_DIRECTORY: 8 Ways to Fix the BSoD Error

First, check the directory path for syntax and typos errors

Reading time icon 4 min. read


Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more

The ERROR_BAD_CURRENT_DIRECTORY with error code 703 (0x2BF) and description {Invalid Current Directory} The process cannot switch to the startup current directory %hs. Select OK to set current directory to %hs, or select CANCEL to exit appears when a program tries changing its working directory to an invalid or inaccessible path.

How can I get rid of ERROR_BAD_CURRENT_DIRECTORY?

1.     Check the working directory

First, check the error message to identify the current directory, which is mentioned in the error, and if there is a specific path mentioned, check three things:

  • The directory you are trying to switch to is present and is accessible
  • Make sure the process or user has the necessary permissions to access the directory
  • Next, check for typos or invalid characters in the path.

2. Set the current directory manually

  1. Press the Windows key, type cmd in the search box, and click Run as administrator from the list of options.CMD elevated  ERROR_BAD_CURRENT_DIRECTORY
  2. To change to a valid directory, type the following command after replacing Your Username with username of your account and path of the file you want to access, then hit Enter : cd C:\Users\YourUsername\Documents
  3. Try running the program in the current directory and check if the ERROR_BAD_CURRENT_DIRECTORY error appears.

3. Run the program as an administrator

  1. Right-click the app and select Properties.
  2. Go to the Compatibility tab.
  3. Under the Settings section, look for Run this program as an administrator and select it.ERROR_BAD_CURRENT_DIRECTORY
  4. Click Apply and OK to save the changes.
  5. Now, launch the app.

4. Verify the environmental variables

  1. Press Windows + R to open the Run window.sysdm.cpl - ERROR_BAD_CURRENT_DIRECTORY
  2. Type sysdm.cpl and click OK to open the System Configuration window.
  3. Go to the Advanced tab, then select Environment Variables.environmental variables
  4. In the following window, check the values for PATH, TEMP, TMP, or other environment variables to make sure they point to valid directories.
  5. If there is any discrepancy, make changes to fix the ERROR_BAD_CURRENT_DIRECTORY BSoD error.

5. Ensure the shortcut path is correct

  1. Right-click the app and select Properties.
  2. Go to the Shortcut tab.start in field - ERROR_BAD_CURRENT_DIRECTORY
  3. Locate the Start in field and make sure the path specified next to it is correct and accessible.

6. Run the System File Checker tool

  1. Press the Windows key, type cmd in the search box, and click Run as administrator from the list of options to launch Command Prompt with admin rights.CMD elevated
  2. To repair or restore the corrupted system files on your computer, then hit Enter: sfc /scannowSFCSCANNOW CMD ERROR_BAD_CURRENT_DIRECTORY
  3. Wait for the scan to complete, and restart your computer to let the changes take effect.

7. Check for disk errors

  1. Press the Windows key, type cmd in the search box, and click Run as administrator from the list of options to launch Command Prompt with admin rights.CMD elevated
  2. As a disk problem could cause the ERROR_BAD_CURRENT_DIRECTORY error, type the following command to find and fix the bad sectors of your disk and press Enter: chkdsk /f
  3. If the disk is in use, you will be prompted to schedule the scan after restart; type Y and hit Enter to proceed.
  4. Now save all your work on your PC and restart your computer.

Running CHKDSK to detect disk errors is the first thing to do if you see the file or directory is corrupted and unreadable error; read this guide to learn more.

8. Reinstall the affected app

Note icon NOTE
This method will only work if you encounter ERROR_BAD_CURRENT_DIRECTORY while launching or running a specific app.
  1. Press Windows + I to open the Settings app.Apps - Installed apps ERROR_BAD_CURRENT_DIRECTORY
  2. Click Apps from the left pane, and select Installed apps.
  3. Locate the affected app, click the three-dot icon, and select Uninstall from the context menu.Uninstall (2)
  4. Click Uninstall to confirm the action.uninstall confirmation  - ERROR_BAD_CURRENT_DIRECTORY
  5. Next, go to the app’s official website and reinstall the application.

In conclusion, to fix the ERROR_BAD_CURRENT_DIRECTORY, you can check the working directory and the environmental variables, run the program as administrator, ensure the shortcut path is correct, and scan your system for file and disk errors.

Do you want to learn more about the BSoD errors? Then, you should know how to check Blue Screen Logs; read this guide and learn the detailed steps.

If you have any questions or suggestions about the BSoD error, feel free to mention them in the comments section below.

More about the topics: BSOD, BSoD error codes, BSoD errors, windows 10, Windows 11

User forum

0 messages