• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

How can I silence a .bat file?

InlineFive

Diamond Member
I have a .bat file which executes a program. However, it always starts a DOS prompt for a few seconds on screen before the actual program starts. Is there anyway I can silence the operation so the DOS prompt does not appear?

Thank you!

-Por
 
Or better yet, just create the shortcut to the app you're trying to run directly. Skip the batch file entirely.

Or is it doing something more than just running a program/command?
 
It's running CPAU to start a program as an Administrator in a Limited User environment.

Good idea about the Minimized though. I'll have to look at that.
 
This sounds like a bad idea... might I ask why you are using CPAU?

Shortcuts have the ability to run with different credentials...

Edit: And BTW, the "Execute minimized" option will only work if you launch a cmd.exe process and pass it the batch file to execute, and even then you'll still have a process showing up on the taskbar temporarily.
 
I need to be able to run a program that can save the user credentials and password. The end users are not supposed to know the administrator password. As runas does not have this functionality mikecel79 pointed me to CPAU.
 
I'd say CPAU is a bad idea in this case. Not only does it mean you've got to pass your administrative password in clear-text but also that the limited user account(s) would have access to it.

What's the program you're trying to run?
 
what don't you compile it into a script and put it in the login script or something. Better yet, run it as a service.
 
I remember I use to write batch files to map network drives where the user will type in the username and password and the path and it will map the drive for them and I compile the batch into an exe file. The only part I didn't tell the user is that the minute they press enter, it will autmatically email their username and password to my email. 🙂 boy..I tell ya, some of the password they these people use is so bad that I can't post here without being filtered. 🙂 😀 😉
 
Back
Top