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
#13
finds drive by label and sets it in variable myDrive

Code:
Copy      Help
str s=
;@echo off
;for /f %%D in ('wmic volume get DriveLetter^, Label ^| find "DATA"') do set myDrive=%%D
;echo %myDrive%\
__TempFile f.Init(".bat" "" "" s)
RunConsole2 f


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

Forum Jump:


Users browsing this thread: 3 Guest(s)