How to silence. Bat file? [dos prompt]

Q: I have one. Bat file to run a program. But it always starts with a DOS for a few seconds on the screen asking you before the actual program begins. Is there anyway I can silence the operation, so the prompt does not appear?

Thank you!

-Por


Re: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. :) :D ;)

Re:Better yet, run it as a service.
That's what I was thinking too; but that would probably only work if the program doesnt require user intervention to run.

Re: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.

Re: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?


Re: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.

Re: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.


Re: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.


Re: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?


Re:You could create a shortcut to the bat file and set it to run minimized.

Related posts

Leave a comment

0 Comments.

Leave a Reply


click to changeSecurity Code

[ Ctrl + Enter ]