Batch process of turning folder into disk

Time:2021-2-21

Copy codeThe code is as follows:
@echo off
Change folder into disk by secretkeyboard QQ: 654525258
Set / P D = please enter the path of the folder you want to change to disk:
Set / P disk = please enter the disk letter you want to convert to disk:
subst %Disk%: %D%
if exist %D% goto ok
goto err
exit
:ok
@Echo command complete
start %Disk%:\
exit
:err
@Echo conversion failed, please check the path
pasue>nul