Prenumerera till Hur-Till Geek

Important! This is an automatic machine translated page. If you can read english, you should Click Here to read the original English version of the article.

Kartlägga ett drev märker till en mapp det lätt långt i Windows

Har du någonsin behövt upprepade gånger att ta fram en mapp som är bygga bo djup insida per jätte- hierarki av mappar? Säker dig alltid skapa en genväg till den mapp, men kan du visste dig kan faktiskt tilldela ett drev märker till en mapp i stället? I dag ska vi show dig hur till gör detta.

Denna kapacitet har finnas i Windows via substen befaller för ganska en stund, så denna som också ska, fungerar för dig XP-användare som väl.

Kartlägga ett drev märker det lätt långt

De lättast långt att tilldela ett drev märker till en mapp är att använda en enkla nytto- kallade Visuellt hjälpmedel Subst, som ger dig som ett trevligt grafiskt har kontakt för att tilldela drev märker, men gör också något, som befalla fodrar version inte kan… dig kan uppsättningen dina faktiska drev applicera igen på starten.

Du kan nedladda och köra det nytto-, utan att behöva att installera den och därefter använder enkelt bläddrandet knäppas för att välja din bana och klickar det gröna positiva symbolet, når du har valt drevet, märker.

avbilda

På denna peka dig bör se drevet märka för att visa upp i lista. (Notera, att du kan ta det bort genom att markera och att välja den röda x-symbolen, eller ändra banan/, märka, genom att använda räddningen, knäppas.

avbilda

Om du önskar till räddningen dreven, ska du önskar att välja ”applicerar faktiska drev på det Windows start” alternativet.

, då nu du öppnar upp ditt datorfönster, bör du se det nya drevet visa upp i lista.

avbilda

Tillfredsställer av det nya Met: drev som faktiskt ska, är tillfredsställer av min skrivbords- mapp.

Nedladdningvisuellt hjälpmedel Subst från ntwind.com

Tilldela drev märker från befallabetalningspåminnelsen

If you are more the keyboard ninja type, or just want to know how to use the command line version, you can use the subst command to map drive letters the same way by using the following syntax:

subst <driveletter> <folder path>

For example, to map the M: drive to my desktop folder I would use the following command:

subst M: c:\users\geek\desktop

If you just want to see which drive letters are assigned, you can use subst without any arguments, as shown here:

image

To delete a drive letter you can use the /D switch instead of a path… for instance, to delete the M: drive that I just created, I would use the following syntax:

subst M: /D

Now when you use the subst command to see the current drives, you’ll see nothing in the list.

image

I’ve found the subst command to be very useful, not just in shortening folder paths but also in one instance where I wanted to delete my second partition… I just reassigned the D: drive letter to point to C: and copied all the data over. That way the application shortcuts still worked without having to reinstall the application.

| More
This article was originally written on 11/14/08 Tagged with: Managing Files and Folders, Windows Vista

Daily Email Updates

You can get our how-to articles in your inbox each day for free. Just enter your name and email below:


Name:
Email:

Comments (14)

  1. satansoldier

    You can write a quick batch and add a shortcut to the start up.

  2. abhishek

    Quite nice tool, but it shows the free space of the new drive equal to the original drive than the size of the folder on which the new drive points. Is that a bug?

  3. Jean-Francois Messier

    Being a PC user since the early 80’s, I had been using this SUBST command for a long time. There is nothing new about this. And rather than using this GUI, I’d just use the command line.

    And now that I’m away from Windows, I use symlinks instead, under Linux. Linux rocks !!!!!

  4. The Geek

    @Jean-Francois

    You can actually use symlinks in Vista now as well:

    http://www.howtogeek.com/howto.....ows-vista/

  5. JonMCC33

    @satansoldier

    Once it is mapped via command prompt then the mapping stays there even after reboot. No need to run a single BAT file at startup over and over. ;-)

    I personally don’t like drive mappings. Would rather use shortcuts to UNC path.

  6. jd2066

    The last time I use used the subst command, it didn’t persist past reboot.
    I would guess the apply on startup command in that program just reruns the subst command on startup.

  7. satansoldier

    My post about a batch at startup was to combat “does something that the command line version can’t… you can set your virtual drives to apply again at startup.”

  8. JonMCC33

    @jd2066

    You’re right, I’m thinking of the NET USE command. Which can work in a similar way. Just share out a folder on your hard drive and map to it with the NET USE command. You can use your own computer name when doing so. It will persist past reboot. ;-)

    http://technet.microsoft.com/e.....90717.aspx

  9. consindo

    This program made photoshop loose the path to all it’s photos. It keeped thinking that my photos were on Z drive where my downloads actually were.

  10. MikeMMB

    What happens if you delete the folder (because you don’t need it anymore!)?

  11. marmstro

    If you didn’t want to create a *.cmd or *.bat script file you could also create a shortcut with the following as the “target”/”Location”

    %COMSPEC% /C “SUBST M: D:\MyFolder >NUL 2>&1″

    Note the quotes. Use whatever you like as the shortcut name. After it is created, use the shortcut properties (right-click on the shortcut and select “Properties”) to change the shortcut “Icon” if you want. Also, if you don’t like the “flash” that occurs when you open the shortcut properties and change the box “Run:” to “Minimized”.
    This shortcut will invoke the shell (Windows command processor) and execute the SUBST command. The ” >NUL 2>&1″ throws away any messages that the SUBST command may generate.

    Then you can independently copy/move the shortcut to anywhere (desktop, quick launch, start menu…) and not be tied to the location of a script file. For example, if you placed the shortcut in your “start” folder then the drive would be created every time you login.

    If you REALLY want to get fancy you could create a shortcut “toggle” by using the following as the “location”/”target”

    %COMSPEC% /C “IF exist M:\ ( SUBST M: /D >NUL 2>&1 ) ELSE ( SUBST M: D:\MyFolder >NUL 2>&1 )”

    Every time you double click on the shortcut it will delete “M:” if the drive exists, otherwise it will create it.

  12. marmstro

    I just thought of a RELLY fancy “toggle”. This reports the status of your drive (deleted or dreated). Change your “location”/”target” to:

    %COMSPEC% /C “IF exist M:\ ( SUBST M: /D & ECHO Drive M: deleted & SUBST & pause ) ELSE ( SUBST M: D:\MyFolder & SUBST & pause )”

    Of course, to see the results, your shortcut properties “Run:” window must NOT be set to “Minimized”.

  13. Paul Kilo

    I have found (at least in my system – win xp -) that Subst mess up with the attribution of the drive letter if you insert a removable drive AFTER you issue the subst command.
    Let’s say that your subst target is F:, and the next available drive letter (before subst) is F:: when you plug-in the device, Windows will associate the letter F: to the device but you can’t see the removable drive content beacuse is “hidden” by the SUBST drive letter target. You have to SUBST /D in order to see the removable drive. I have to remember to not target the next free drive letter with subst to circumnavigate the problem.

  14. Patrick

    Paul,
    I have also seen that problem with NET USE or windows sharing drives. It’s a generic bug in XP, simple solution is exactly as you stated, just assign letters to static things further down the alphabet.


Leave a Comment




Leave your friendly comment here.

If you have a computer help question, click here to leave it on the forums instead.

Note: Your comment may not show up immediately on the site.

Our Friends
Getting Started


About How-To Geek
What Is That Process?
svchost.exe
jusched.exe
dwm.exe
ctfmon.exe
wmpnetwk.exe
wmpnscfg.exe
rundll32.exe
wfcrun32.exe
Ipoint.exe
Itype.exe
Wfica32.exe
Mobsync.exe
conhost.exe
Dpupdchk.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. All Rights Reserved.