Announcement

Collapse
No announcement yet.

Cannot use "reg query" command in bat file!

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Cannot use "reg query" command in bat file!

    I execute the command reg query "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v Userinit>1.txt" successfully in cmd.exe and get the following content in 1.txt:
    ! REG.EXE VERSION 3.0

    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon
    Userinit REG_SZ C:\WINDOWS\SYSTEM32\Userinit.exe,

    but when I write this command in .bat file,it just cannot execute.I cannot get the correct result in 1.txt.
    Any help will be appreciated!
Working...
X