We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38e3c18 commit 1d35666Copy full SHA for 1d35666
+stdlib/+sys/device.m
@@ -1,9 +1,9 @@
1
function i = device(p)
2
3
-i = [];
+i = 0;
4
5
if ispc()
6
- c0 = 'powershell -Command "(Get-CimInstance -ClassName Win32_Volume -Filter \"DriveLetter = ''';
+ c0 = 'pwsh -c "(Get-CimInstance -ClassName Win32_Volume -Filter \"DriveLetter = ''';
7
c1 = stdlib.root_name(stdlib.absolute(p));
8
c2 = '''\").SerialNumber"';
9
cmd = strcat(c0, c1, c2);
0 commit comments