Hey guys,
Sorry for the possible misplacement of this thread, I honestly don't know what type of programming batch files are.
I'm trying to write a batch file to do something I do with start -> run ->type it in -> hit enter.
I have it down to the hit enter but am stuck.
basically, I have a command that fixes the database files for some group policy stuff (on a desktop PC), "esentutl /p c:\Windows\Security\database\secedit.sdb" and I want to make it a bat file that doesn't prompt the user at all, and just fixes what I need to fix.
so I made a file with a .bat extension, containing
Rem * this is to fix the Group Policy database file(or something close) to allow group policies to take affect *
esentutl /p c:\Windows\Security\database\secedit.sdb
When this runs it prompts the user with "ok" or "cancel" options. I want to make it hit "ok". and I'd also preferably but it's a separate issue prevent a window from coming up at all.
Any idea how to do this? You guys have screwed with command line'ish scripting a lot more than I have, was hoping you could shed some light
Sorry for the possible misplacement of this thread, I honestly don't know what type of programming batch files are.
I'm trying to write a batch file to do something I do with start -> run ->type it in -> hit enter.
I have it down to the hit enter but am stuck.
basically, I have a command that fixes the database files for some group policy stuff (on a desktop PC), "esentutl /p c:\Windows\Security\database\secedit.sdb" and I want to make it a bat file that doesn't prompt the user at all, and just fixes what I need to fix.
so I made a file with a .bat extension, containing
Rem * this is to fix the Group Policy database file(or something close) to allow group policies to take affect *
esentutl /p c:\Windows\Security\database\secedit.sdb
When this runs it prompts the user with "ok" or "cancel" options. I want to make it hit "ok". and I'd also preferably but it's a separate issue prevent a window from coming up at all.
Any idea how to do this? You guys have screwed with command line'ish scripting a lot more than I have, was hoping you could shed some light