Windows 10: using python to subst drive letter which be occupied by network, gets wrong icon in explorer

Discus and support using python to subst drive letter which be occupied by network, gets wrong icon in explorer in Windows 10 Gaming to solve the problem; #coding=utf-8import osimport subprocessdef win_subst_action, _drive, _path = '': if _action == 'delete': _cmd = 'subst /d {}'.format_drive... Discussion in 'Windows 10 Gaming' started by KuoHsingLan, Oct 10, 2021.

  1. using python to subst drive letter which be occupied by network, gets wrong icon in explorer


    #coding=utf-8import osimport subprocessdef win_subst_action, _drive, _path = '': if _action == 'delete': _cmd = 'subst /d {}'.format_drive elif _action == 'mount': _cmd = 'subst {} {}'.format_drive, _path p = subprocess.Popen_cmd, shell = True p.c

    :)
     
    KuoHsingLan, Oct 10, 2021
    #1
  2. Cadill Win User

    Windows 10 doesn't recognize subst drive letters in Explorer

    Subst seems to be broken in Windows 10.

    Windows 10 Pro

    Version 20H2

    Build 19042.421

    When using subst to create a new drive letter, the new drive is available in the command prompt, but the drive letter does not show up in Explorer, even when I run the subst from an elevated command prompt. Previously, the subst drive letter would appear in
    Explorer.

    Please don't tell me to run "sfc /scannow". We all know to do that. It doesn't help.
     
    Cadill, Oct 10, 2021
    #2
  3. Windows 10 doesn't recognize subst drive letters in Explorer

    This would happen if you ran the subst command in a different account context than File Explorer.
     
    Frederik Long, Oct 10, 2021
    #3
  4. using python to subst drive letter which be occupied by network, gets wrong icon in explorer

    Reformatting - Wrong Drive Letters?

    Ok, do so googling about acronis True Image 11 and disk letters. Its the program I use to save all my info, and I know that people wee having troubles with the drive letters there. It was something about modifying the boot.ini and assigning drives. Anyway, I found this for you:

    Change the System/Boot Drive Letter
    Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
    322756 (http://support.microsoft.com/kb/322756/) How to back up and restore the registry in Windows
    1. Make a full system backup of the computer and system state.
    2. Log on as an Administrator.
    3. Start Regedt32.exe.
    4. Go to the following registry key:
    HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices
    5. Click MountedDevices.
    6. On the Security menu, click Permissions.
    7. Verify that Administrators have full control. Change this back when you are finished with these steps.
    8. Quit Regedt32.exe, and then start Regedit.exe.
    9. Locate the following registry key:
    HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices
    10. Find the drive letter you want to change to (new). Look for "\DosDevices\C:".
    11. Right-click \DosDevices\C:, and then click Rename.

    Note You must use Regedit instead of Regedt32 to rename this registry key.
    12. Rename it to an unused drive letter "\DosDevices\Z:".

    This frees up drive letter C.
    13. Find the drive letter you want changed. Look for "\DosDevices\D:".
    14. Right-click \DosDevices\D:, and then click Rename.
    15. Rename it to the appropriate (new) drive letter "\DosDevices\C:".
    16. Click the value for \DosDevices\Z:, click Rename, and then name it back to "\DosDevices\D:".
    17. Quit Regedit, and then start Regedt32.
    18. Change the permissions back to the previous setting for Administrators (this should probably be Read Only).
    19. Restart the computer.
     
    Cybrnook2002, Oct 10, 2021
    #4
Thema:

using python to subst drive letter which be occupied by network, gets wrong icon in explorer

Loading...
  1. using python to subst drive letter which be occupied by network, gets wrong icon in explorer - Similar Threads - using python subst

  2. Drive Letter not showing in File explorer, no matter which drive is used

    in Windows 10 Gaming
    Drive Letter not showing in File explorer, no matter which drive is used: Windows 10I have had this niggling problem for a while now, where the drive letter M: is not recognised in file explorer.It doesn't matter what drive is connected or if I reassign a known working drive to the letter M, it is not seen in file explorer.Given this is seen in...
  3. Drive Letter not showing in File explorer, no matter which drive is used

    in Windows 10 Software and Apps
    Drive Letter not showing in File explorer, no matter which drive is used: Windows 10I have had this niggling problem for a while now, where the drive letter M: is not recognised in file explorer.It doesn't matter what drive is connected or if I reassign a known working drive to the letter M, it is not seen in file explorer.Given this is seen in...
  4. Drive Letter not showing in File explorer, no matter which drive is used

    in Windows 10 Drivers and Hardware
    Drive Letter not showing in File explorer, no matter which drive is used: Windows 10I have had this niggling problem for a while now, where the drive letter M: is not recognised in file explorer.It doesn't matter what drive is connected or if I reassign a known working drive to the letter M, it is not seen in file explorer.Given this is seen in...
  5. using python to subst drive letter which be occupied by network, gets wrong icon in explorer

    in Windows 10 Network and Sharing
    using python to subst drive letter which be occupied by network, gets wrong icon in explorer: #coding=utf-8import osimport subprocessdef win_subst_action, _drive, _path = '': if _action == 'delete': _cmd = 'subst /d {}'.format_drive elif _action == 'mount': _cmd = 'subst {} {}'.format_drive, _path p = subprocess.Popen_cmd, shell = True p.c...
  6. using python to subst drive letter which be occupied by network, gets wrong icon in explorer

    in Windows 10 Software and Apps
    using python to subst drive letter which be occupied by network, gets wrong icon in explorer: #coding=utf-8import osimport subprocessdef win_subst_action, _drive, _path = '': if _action == 'delete': _cmd = 'subst /d {}'.format_drive elif _action == 'mount': _cmd = 'subst {} {}'.format_drive, _path p = subprocess.Popen_cmd, shell = True p.c...
  7. Windows 10 doesn't recognize subst drive letters in Explorer

    in Windows 10 Drivers and Hardware
    Windows 10 doesn't recognize subst drive letters in Explorer: Subst seems to be broken in Windows 10. Windows 10 Pro Version 20H2 Build 19042.421 When using subst to create a new drive letter, the new drive is available in the command prompt, but the drive letter does not show up in Explorer, even when I run the subst from an elevated...
  8. Windows 10 doesn't recognise subst drive letters in Explorer

    in Windows 10 Drivers and Hardware
    Windows 10 doesn't recognise subst drive letters in Explorer: Subst seems to be broken in Windows 10. Windows 10 Pro Version 20H2 Build 19042.421 When using subst to create a new drive letter, the new drive is available in the command prompt, but the drive letter does not show up in Explorer, even when I run the subst from an elevated...
  9. Maintaining Drive Letters & Network Mappings in Windows Explorer

    in Windows 10 Network and Sharing
    Maintaining Drive Letters & Network Mappings in Windows Explorer: I have a Surface Pro 7 & want to access the SDXC drive & map a network drive in Windows Explorer. I want the SDXC drive to have the letter E instead of the default, which is D, and I want the network drive to use the letter D. I know how to map a network drive, and I know how...
  10. Drive created using subst - write permission problem

    in Windows 10 Support
    Drive created using subst - write permission problem: Hello. I had Windows 8.1 installed and some months ago I associated drive letter (Q*Smile with C:\Users\Michal\Desktop\Q_Drive. I have my photos collection on that drive and I use it with Adobe Lightroom. Everything worked fine with 8.1, but after upgrade to Windows 10...