MagicFrisbee
Programmer
In my organization, when a user inserts a memory stick into a computer running Windows, Windows will often give it a drive letter that's already in use by a Novell network drive mapping. For instance, the stick will get the drive letter F:, though F: may already point somewhere. Consequently, they can't use Windows Explorer to work with their stick because F: still shows the network drive contents.
I have become familiar with the DiskPart utility and can run such a script from Delphi with ShellAPI's ShellExecute method. The problem is that DiskPart doesn't have an API--at least I haven't found one. Although I can use DiskPart at a prompt and see the connected volumes by drive letter, I can't seem to get a handle on this information at run-time. What function call can I make to replicate the "list volume" command, the "select volume" command, and the "assign letter" command?
GIS Programmer
City of Orem, UT
I have become familiar with the DiskPart utility and can run such a script from Delphi with ShellAPI's ShellExecute method. The problem is that DiskPart doesn't have an API--at least I haven't found one. Although I can use DiskPart at a prompt and see the connected volumes by drive letter, I can't seem to get a handle on this information at run-time. What function call can I make to replicate the "list volume" command, the "select volume" command, and the "assign letter" command?
GIS Programmer
City of Orem, UT