WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Environment

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Get Next Available Drive Letter

 Keywords:  Get Obtain List Next Available Drive Letter DiskScan DiskScan(0) ItemExtract

Question:

Could you help to get a method to find "Next Available Drive Letter" before I map a new letter?

Answer:

I recommend using DiskScan option 0 to obtain a list of unused disk IDs, then extract the first on using ItemExtract. The code might look something like this:
avail_drive = ItemExtract( 1, DiskScan(0), @TAB )

Article ID:   W17862
Filename:   Get Next Available Drive Letter.txt
File Created: 2013:01:16:09:33:10
Last Updated: 2013:01:16:09:33:10