Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

.bat file question....


  • Please log in to reply

#1
Untowire

Untowire

    Member

  • Member
  • PipPip
  • 20 posts
Hi,

How can I create a .bat or .cmd file that enters a registry file without being asked if it's okay/continue, etc.? Something like a silent install.

Hope I made myself clear and your help would be appreciated.


Regards,
  • 0

Advertisements


#2
Metallica

Metallica

    Spyware Veteran

  • GeekU Moderator
  • 32,902 posts
http://www.computerhope.com/reg.htm

According to that /f is what you are looking for.

Example line in a bat file
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Test /v silent /f

Hope that is what you are looking for.
  • 0

#3
Untowire

Untowire

    Member

  • Topic Starter
  • Member
  • PipPip
  • 20 posts

http://www.computerhope.com/reg.htm

According to that /f is what you are looking for.

Example line in a bat file

reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Test /v silent /f

Hope that is what you are looking for.


Thank you for your reply. Much appreciated.
  • 0

#4
Metallica

Metallica

    Spyware Veteran

  • GeekU Moderator
  • 32,902 posts
You're welcome. :)
  • 0

#5
Ax238

Ax238

    Tech Staff

  • Technician
  • 1,323 posts
Untowire,

If you are looking to import a file with a ".reg" extension, then you'll have to use a somewhat different approach:
regedit.exe /s "C:\Test\File.reg"

With "C:\Test\File.reg" being the path to the file you wish to merge to the registry.

Ax
  • 0

#6
Untowire

Untowire

    Member

  • Topic Starter
  • Member
  • PipPip
  • 20 posts

Untowire,

If you are looking to import a file with a ".reg" extension, then you'll have to use a somewhat different approach:

regedit.exe /s "C:\Test\File.reg"

With "C:\Test\File.reg" being the path to the file you wish to merge to the registry.

Ax



Thanks, much appreciated.
  • 0

#7
Ax238

Ax238

    Tech Staff

  • Technician
  • 1,323 posts
:) Glad to help.
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP