Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to use the QM code to achieve the following CMD code effect
#12
@kevin 

Thanks for your help, the above code can find the drive letter Smile

is there an easier way? such as calling the system's API, or bat commond?

I found the following code, but I don't know how to handle the character number to get the drive letter.

Code:
Copy      Help
@echo off
for %%a in (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 if exist %%a: for /f "tokens=3*" %%b in ('vol %%a:') do echo %%a:Label is:%%c
pause


Messages In This Thread
RE: How to use the QM code to achieve the following CMD code effect - by win - 02-13-2019, 02:04 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)