Using a program that can convert a batch file into an executable , Psubst can be made into a standard. EXE file. You can do this yourself by using a Bat to Exe tool. Visual Subst is a simple to use tool that allows you to create a number of drive mappings quickly and easily. The program is portable and only KB in size. Select the drive letter from the drop down menu and enter the path to the folder manually or browse for it by pressing the magnifying glass on the right.
Then press the Plus button to assign the mapping and it will appear in the main window. Checking the box at the bottom will silently run Visual Subst during startup to assign the drive letters.
Delete the mapped drive with the X button or save any changes to a current mapping with the disc icon. Download Visual Subst. This next method has a couple of advantages over the Subst command. Not only does it add the mapped drive automatically on every boot, the drive letter is associated with the folder before any applications are launched. That means the drive letter can be used by other applications during boot.
This option is not recommended for inexperienced users. This key will associate virtual drive names with paths and it does so very early in the boot process.
Close the registry editor and reboot the computer as this key is only read during startup. Upon rebooting, the mapping will show in Explorer in the list of hard drives.
If you decide to create a. REG file to add or edit Dos devices, add a second backslash to every backslash in the folder path. An example. REG file of the above would be:. In Windows 10 or 8 open Explorer and make sure you are in the Computer tab.
For Folder do not press Browse but Instead enter the following into the text box using your own arguments:. Using just Localhost should be fine for most users. Find the name in System Properties. A couple of examples would be:. Press Finish when done. To remove the mapped folder simply right click on its drive in Explorer and select Disconnect. The Net command in Windows is able to view, edit or manage many aspects related to the network.
Here we are using the Net Use command which manages shared resource connections. The syntax is as follows:. Enter the drive letter you want to map the folder to as Driveletter including colon.
For the path to the folder you can use either Localhost or the Computername like the method above. Make sure to use a dollar sign instead of a colon for Drive. Subst will constantly try to connect which can have an adverse effect on system performance. When you map network drive using PowerShell , it will create shortcut of shared drive or folder on network and map network drive to drive letter under This PC in Window Explorer.
Using PowerShell PS-Drive cmdlet , you can quickly creates temporary or persist network drives and map network drive to drive letter, directory on local computer or registry keys.
Description : Creates temporary or persists network drives for shared folder or location on local computer. Temporary drives are exists only in current PowerShell session and mapped it to any local computer or remote computer resource. In the above example, New-PSDrive command uses Name parameter to specify drive letter on local computer. In the above example, we have mapped network drive for remote shared data store.
Using New-PSDrive command, you can create temporary PowerShell drive that mapped to local folder on the local computer. Be sure that you type all the commands exactly as shown. To download the script, just click here. One hundred and eighteen lines of code later, you have a handy tool you can use to map drive letters to your local files. However, while it is one thing to have the code in front of you, it is quite another to understand what function each line performs.
So, in my follow-up Daily Drill Down, I will break down each section of code into logical subroutines. Ultimately, the goal is to give you the necessary background to create your own scripts to use for whatever function you would like to automate.
Editor's Picks. The best programming languages to learn in Check for Log4j vulnerabilities with this simple-to-use script.
TasksBoard is the kanban interface for Google Tasks you've been waiting for. Paging Zefram Cochrane: Humans have figured out how to make a warp bubble. Show Comments. Hide Comments. My Profile Log out.
Join Discussion. Add your Comment.
0コメント