![Batch script to remap keyboard keys](https://loka.nahovitsyn.com/101.jpg)
![batch script to remap keyboard keys batch script to remap keyboard keys](https://helpdeskgeek.com/wp-content/pictures/2020/02/SharpKeys-Load-File.png)
Save the batch file and close out Notepad. Subst z: “c:/Users/mark/OneDrive – Mark W Kaelin”įigure B shows you what it looks like in Notepad. Add the subst command that maps your desired drive letter to Microsoft One Drive. Windows will open Notepad, and you will see an empty text file. Right-click your batch file and select Edit from the context menu. Give your new text file a name but be sure to use the. Select New | Text Document from the context menu. Use Windows File Explorer to navigate to the Apps folder, as shown in Figure A, and right-click on an open area in the righthand window. It does not matter where this batch file is located, but I would suggest somewhere on the operating system drive (typically C:). Probably the best way to describe it is that batch files are a form of scriptingįor our purposes, we will create a simple text file with the “.bat” extension with only one line in it. These are the kinds of commands you would issue from the standard command prompt. SEE: OneDrive Cloud Usage Policy (TechRepublic Premium) Permanently map OneDrive to a drive letter with a batch fileįor those of you not as ancient as me, a batch file is a simple text file that Windows interprets as a series of commands. However, we can still use a batch file to run our subst command at startup, but only if we mix the old with the new and link the file to the right folder.
#BATCH SCRIPT TO REMAP KEYBOARD KEYS WINDOWS 10#
In the days of DOS we could make our mapped drive permanent through an autoexec.bat file that runs during the boot process, but that will not work with Windows 10 or Windows 11.
#BATCH SCRIPT TO REMAP KEYBOARD KEYS HOW TO#
How to reset your Windows 10 password when you forget it Must-read Windows coverageĭefend your network with Microsoft outside-in security services Each restart or reboot of your PC will remove the mapping, so we must take the next step to make it constant. While the use of a DOS command is effective, it is not permanent.
![batch script to remap keyboard keys batch script to remap keyboard keys](http://2.bp.blogspot.com/_CYXEPbH5yrc/SMq5SMQRYZI/AAAAAAAAAmc/n7z7rm3cWow/s400/RemapKeys.jpg)
This trick was needed because neither Windows 10 nor Windows 11 will allow users to map OneDrive through conventional methods. Previously, we outlined a method for mapping a drive letter to Microsoft OneDrive using the old “subst” DOS command. Using a little-known feature of Windows 10 and 11, we can automatically designate a specific drive letter to Microsoft OneDrive at startup every time we boot up our PC. How to permanently map OneDrive to a drive letter using a batch file
![Batch script to remap keyboard keys](https://loka.nahovitsyn.com/101.jpg)