Avatar of DistillingExperts
DistillingExperts
 asked on

How to hide execution of a bat file in Windows 7

I am trying to execute the following bat content but it keeps showing the window for me to confirm:
@echo off
regsvr32.exe grid32.ocx

C:\Windows\system32>cmd.exe /c c:\temp\file.bat

Any ideas?
Windows 7

Avatar of undefined
Last Comment
01101001

8/22/2022 - Mon
MarkieS

Add /s to the end of your regsvr.ex command

regsvr32.exe grid32.ocx /s
ASKER CERTIFIED SOLUTION
MarkieS

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
01101001

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23