script to add/remove drive letter

avismile10

New Member
Messages
24
Location
canada
hi there
i am trying to make a script using diskpart to assign or remove the drive letter of a certain volume
what i want is that the script should check if that volume has/doesn't have a drive letter and do the opposite
for example if i run the script and there is already a drive letter assigned to that volume the script should remove the drive letter and vice versa
if some could please help me out on this or refer articles that could help me out i would be very grateful
thanks in advance
 

My Computer

System One

  • OS
    windows 8.1
    Computer type
    PC/Desktop
    CPU
    Intel Core i5 4xxx @ 3.00GHz
    Motherboard
    Gigabyte Technology Co., Ltd. P85-D3
    Memory
    8.00 GB Dual-Channel DDR3 @ 797MHz
    Graphics Card(s)
    NVIDIA GeForce GTX 750 Ti
    Sound Card
    Realtek High Definition Audio
    Monitor(s) Displays
    L22T-7 LED on NVIDIA GeForce GTX 750 Ti
    Screen Resolution
    1920x1080 pixels
    Hard Drives
    WD 1 TB
    SSD 120 GB
    Keyboard
    Microsoft Desktop 2000
    Mouse
    Microsoft Desktop 2000
    Browser
    chrome
    Antivirus
    Eset Smart security
Back
Top