문제

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