How can I get the output "% windir% / system32 / pnputil.exe -e"? (suppose Windows Vista is 32-bit)
Bonus for a technical explanation of why the application usually writes output to the cmd shell, but when the stdout and / or stderr redirection is redirected, does the application write nothing to the console or to stdout / stderr?
C: \ Windows \ System32> PnPutil.exe --help Microsoft PnP Utility {...} C: \ Windows \ System32> pnputil -e> c: \ foo.txt C: \ Windows \ System32> type c: \ foo.txt C: \ Windows \ System32> dir c: \ foo.txt Volume in drive C has no label. Volume Serial Number is XXXX-XXXX Directory of c: \ 10/09/2008 12:10 PM 0 foo.txt 1 File (s) 0 bytes
, . WriteConsole . . .
, , . (, cmd , ).
, , . MSDN WriteConsole , WriteConsole WriteFile. , pnputil.exe kernel32! WriteConsoleW kernel32! WriteConsoleInputW.
, .
, . .
, pnputil.exe -a d:\pnpdriver *.inf
oemXX.inf , .
, , ,
svn status | find "? "
- , svn status find "? ", subversion ( ) .
svn status
find "? "
, svn , "Copyright? 2009", . , .
, , Sysinternals, , , - , .
/.
, > , , , . .
>
, , "pnputil -e 2 > c:\foo.txt" . , .
. " > c:\foo.txt" , "2 > C:\foo.txt" , .
(2 > & 1), :
pnputil -e 1 > c:\foo.txt 2 > & 1
foo.txt, pnputil .
Expect Windows , , WriteConsole . Windows
( - > - > )
pnputil -e
; -
So, I'm looking for information of the same type and stumbled upon this: https://sysadminstricks.com/tricks/windows-tricks/cleaning-up-windows-driver-store-folder.html . Although the syntax is incorrect, it seems to have helped (with a little correction):
pnputil.exe -e > c:\driveroutput.txt
When this command is executed, it is not displayed on the command line, but it generates driveroutput.txtto the root C:. Opening a text file really shows that I now have the output of the listed OEM drivers on my PC.
driveroutput.txt
C:
Source: https://habr.com/ru/post/1696781/More articles:What is the best way to populate a menu control on the main page? - .net-3.5Ajax XMLHttpRequest Object Constraint - ajaxUsing ActiveDirectoryMembershipProvider with two domain controllers - asp.netHow can I indicate that several versions of the dependent assembly are in order? - .netHow to make InputVerifier work with editable JComboBox - javaSolid Config for webdev in emacs on Linux and Windows? - linuxChanging the AJAX Controlkit Toolkit Enhanced Extension - asp.netКак наилучшим образом объединить информацию, на сервере, в "форму", в качестве конечного вывода создается PDF файл - .netHow do I know when to use test-based testing or false testing? - unit-testingHow to prevent "Please inform Microsoft about this problem" Dialogs - ms-accessAll Articles