I'm testing out the output by a simple batch like this, but it doesn't seem to work properly. Any ideas?
Code:
set defaultPrinter= REG QUERY "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows" /v Device
echo %defaultPrinter%
It should be outputting this:
Code:
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
Device REG_SZ Microsoft XPS Document Writer,winspool,Ne00:
and instead it outputs the input haha
Code:
C:\Documents and Settings\James>"C:\Documents and Settings\James\Desktop\blah.bat"
C:\Documents and Settings\James>set defaultPrinter= REG QUERY "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows" /v Device
C:\Documents and Settings\James>echo REG QUERY "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows" /v Device
REG QUERY "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows" /v Device
Hmm...