返回列表 发帖
本帖最后由 Nsqs 于 2023-8-28 00:59 编辑

全部
@echo off
powershell -noprofile -executionpolicy bypass "gwmi Win32_LogicalDiskToPartition|select Antecedent,Dependent|%%{$x=$_.Dependent -replace '.+(?:=)|\"';\"$x, $($_.Antecedent -replace '(?:.+=)|\"')\"}"
pauseCOPY
指定盘符
@echo off
powershell -noprofile -executionpolicy bypass "(gwmi Win32_LogicalDiskToPartition|?{$_.Dependent -match 'd:'}).Antecedent -replace '(?:.+=)|\"'"
pauseCOPY

TOP

返回列表