Welcome Guest ( Log In | Register )

      
Discover the best free computer help!
Learn more about Geeks to Go by taking the tour. Spyware, virus, trojan, fake security or privacy alerts? Read the malware cleaning guide.
 
Reply to this topicStart new topic
.bat file question....
Untowire
post Mar 18 2008, 02:31 PM
Post #1


Member
**
Posts: 15
OS: Vista



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,
Go to the top of the page
 
+Quote Post
Metallica
post Mar 18 2008, 11:24 PM
Post #2


Spyware Veteran
Group Icon
Posts: 20,659
From: Netherlands
OS: XP Pro & Vista Ultimate



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

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

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


Hope that is what you are looking for.
Go to the top of the page
 
+Quote Post
Untowire
post Mar 19 2008, 01:02 AM
Post #3


Member
**
Posts: 15
OS: Vista



QUOTE (Metallica @ Mar 18 2008, 11:24 PM) *
http://www.computerhope.com/reg.htm

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

Example line in a bat file
CODE
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.
Go to the top of the page
 
+Quote Post
Metallica
post Mar 19 2008, 06:23 AM
Post #4


Spyware Veteran
Group Icon
Posts: 20,659
From: Netherlands
OS: XP Pro & Vista Ultimate



You're welcome. smile.gif
Go to the top of the page
 
+Quote Post
Ax238
post Mar 19 2008, 01:24 PM
Post #5


TA Moderator
Group Icon
Posts: 1,275
From: SET HOMEPATH
OS: Windows 95/98/2000/XP/Vista



Untowire,

If you are looking to import a file with a ".reg" extension, then you'll have to use a somewhat different approach:
CODE
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
Go to the top of the page
 
+Quote Post
Untowire
post Mar 20 2008, 12:58 AM
Post #6


Member
**
Posts: 15
OS: Vista



QUOTE (Ax238 @ Mar 19 2008, 01:24 PM) *
Untowire,

If you are looking to import a file with a ".reg" extension, then you'll have to use a somewhat different approach:
CODE
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.
Go to the top of the page
 
+Quote Post
Ax238
post Mar 20 2008, 11:30 AM
Post #7


TA Moderator
Group Icon
Posts: 1,275
From: SET HOMEPATH
OS: Windows 95/98/2000/XP/Vista



thumbsup.gif Glad to help.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Collapse

> Similar Topics

    Topic Title Replies / Views Topic Information
No New Posts   6 / 326 1st May 2007 - 07:15 AM
beethoven started - last by beethoven
No New Posts   4 / 286 9th August 2007 - 06:38 PM
Fredil started - last by Fredil
No New Posts   11 / 309 24th October 2007 - 06:53 AM
pr0n started - last by pr0n
No New Posts 3 / 281 28th July 2008 - 03:48 PM
kelkay started - last by kelkay

RSS Time is now: 22nd November 2008 - 01:36 PM
Advertisements do not imply our endorsement of that product or service. The forum is run by volunteers who donate their time and expertise. We make every attempt to ensure that the help and advice posted is accurate and will not cause harm to your computer. However, we do not guarantee that they are accurate and they are to be used at your own risk.