Has anyone done this ? what I am trying to do is automate the regedt32 /s Registry.reg command from within a batch or cms file this will work if you run it from a command prompt but not the batch file
What if you use regedit instead of regedt32? I'm pretty sure that I have done this successfully in the past with regedit.
[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
next few lines are the bat file
___________________________________________________________
echo off
cls
rem Note: this file merges tif-cln.reg to re-establish the RunOnce value
start /w regedit.exe /s tif-cln.reg
exit
___________________________________________________________
The next lines arethe tif-cln.reg file
___________________________________________________________
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce]
"TIF-Clean"="TIF-CLN.BAT"
____________________________________________________________
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.