Re: Newbie Question on Exporting

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi Paul,

Put the below lines in a text file and save it as a .bat.

@echo off
SET MYKEY="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB"
IF EXIST "C:\regkey.txt" DEL /F /Q "C:\REGKEY.TXT"
regedit /E "C:\USB_Devices.txt" %MYKEY%

rgds
Babu

"Paul" <Paul@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:563E6CBC-E87D-46B2-8DBE-85358151A29E@xxxxxxxxxxxxxxxx
Hello,

I was Trying to export the registry key below to a text file. The test
file
I declared does not work. I would appreciate any help!

Thank You,

Paul

var regkey;
var WshShell = WScript.CreateObject("WScript.Shell");
WshShell.Run("regedit /e c:\test.txt
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB");


.



Relevant Pages

  • Re: BATCH file "grab filename"
    ... I need a .bat file that does this: ... > with a .wma extension. ... > @ECHO OFF ... echo DEL %FileName%.wma /q ...
    (microsoft.public.win2000.general)
  • Re: Understandings a Batch file
    ... bat file. ... The user also runs this from a command prompt. ... @echo off ... echo You must enter a valid G drive directory formatExample: ...
    (microsoft.public.windowsxp.general)
  • Re: Ping: Malke
    ... At the start of the .BAT I'd have things like... ... Echo X: = Drive letter where data is located ... = Drive letter where backup is to be created ...
    (microsoft.public.security.virus)
  • Re: Logon BAT file
    ... @ECHO ON ... Find out of the bat is running at all. ... You really shouldn't be using Logon Batch files from the User PROPERTIES ... AND the GPO batch files together as it gets too confusing. ...
    (microsoft.public.windows.server.general)
  • Re: powercobol compile all directory projects
    ... I need compile all powercobol program into my programs directory. ... How to compile all program with a bat command? ... The PCV6 documentation even has a sample bat file to rebuild a whole ... ECHO BEGIN> RESULT.TXT ...
    (comp.lang.cobol)