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

I want to get only first column. Can anyone suggest an answer?

有帮助吗?

解决方案

for /f %%a in ('REG QUERY HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run') do @echo %%a|find /v "\"

should work for you. If you are running directly from the prompt, reduce %% to %

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top