Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Treatment method for "for wmic where get " syntex error message "invalid alias verb"

293 views
Skip to first unread message

mokomoji

unread,
Mar 30, 2017, 12:48:32 PM3/30/17
to
Test windows 7

Errors Syntex

@echo off
wmic nicconfig where dhcpserver="192.168.0.1" get ipconnectionmetric

for /f "usebackq delims=" %%f in (
`wmic nicconfig where dhcpserver="192.168.0.1" get ipconnectionmetric`

) do (
echo wmic dhcpserver="%%f"
)
pause


Success Syntex


@echo off
wmic nicconfig where dhcpserver="192.168.0.1" get ipconnectionmetric

for /f "usebackq delims=" %%f in (
`wmic nicconfig where dhcpserver^="192.168.0.1" get ipconnectionmetric`

) do (
echo wmic dhcpserver="%%f"
)
pause


dhcpserver="192.168.0.1" ERROR
dhcpserver^="192.168.0.1" Success

npocmaka

unread,
Mar 31, 2017, 10:49:25 AM3/31/17
to
you can try also with :

mokomoji

unread,
Mar 31, 2017, 5:17:32 PM3/31/17
to
2017년 3월 31일 금요일 오후 11시 49분 25초 UTC+9, npocmaka 님의 말:
wow

good~!!!

thank you~!!

0 new messages