ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Map Drive Script - Check for Drive letter in use

    IT Discussion
    drive mapping batch script scripting
    9
    23
    4.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DanpD
      Danp
      last edited by

      How about this to get all drive letters in use?

      for %i in (a b c d e f g h i j k l m n o p q r s t u v w x y z) do @%i: 2>nul && set/pz=%i <nul

      source

      1 Reply Last reply Reply Quote 0
      • J
        Jason Banned
        last edited by

        GPP can be set to use the next available drive.

        1 Reply Last reply Reply Quote 0
        • Mike DavisM
          Mike Davis
          last edited by

          how many computers have the card readers? Instead of messing with the rest of the company's drive letters you could script something like:

          diskpart
          select vol g
          assign letter=b

          You have to put the diskpart commands in .txt file and then specify that as the script for diskpart to use, but you get the idea. Just move the local media card reader to a letter that's not used by the company and be done with it.

          1 Reply Last reply Reply Quote 0
          • 1
          • 2
          • 2 / 2
          • First post
            Last post