Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Nov 2004
    Location
    USA
    Posts
    123
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation creating a reg file that will run a bat

    hi there,
    I have been trying to create a reg file that will run a bat file that will do a chkntfs and defrage on start up in the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
    key
    I want to make it a reg file for multiple pc users for an install using windows xp pro. in our network here however its not going vary well.

    if anyone can help with this it would be appreciated greatly.

  • #2
    New Coder
    Join Date
    Feb 2005
    Location
    Nowhere.
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It is not possible. The only thing .REG files do is to modify the registry.

  • #3
    New Coder
    Join Date
    Nov 2004
    Location
    Netherlands
    Posts
    87
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I think he means he wants to create a .reg file to modify the registry so it will launch a batch file on startup. If so, I think your file would look something like this:
    Code:
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
    "Disk Checker"="C:\\disk_check.bat"

  • #4
    Regular Coder
    Join Date
    Nov 2004
    Location
    USA
    Posts
    123
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks Dr. Evil that is exactly what I meant. Thanks for the fast replies
    Dw5304


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •