c:>REG QUERY HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
XSENZ REG_SZ C:\Windows\syswow64\XSENZ.EXE
Persistence REG_SZ C:\windows\system32\igfxpers.exe
IntelliPoint REG_SZ "c:\Program Files\Microsoft IntelliPoint\ipoint.exe"
IgfxTray REG_SZ C:\windows\system32\igfxtray.exe
HotKeysCmds REG_SZ C:\windows\system32\hkcmd.exe
我只想获取第一列。有人可以提出答案吗?
最佳答案
for /f %%a in ('REG QUERY HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run') do @echo %%a|find /v "\"
应该适合你。如果您直接从提示符运行,请将 %%
减少为 %
关于cmd - 如何从 REG QUERY 获取特定列?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22682522/