There's a few things that I've tried, unsuccessfully. Is there anything else that I can do? Improve this question. Nikhil Hegde Nikhil Hegde 3 3 silver badges 12 12 bronze badges. NikhilHegde As you have executed a Stack Overflow search with the search term [batch-file] run background , which topic was the most promising for you?
Mofi Anything related to running a batch-file in the background would be promising. That start will open a new cmd windows which will execute the batch file and after it started the process it will return to your cmd window from where you executed the command. Show 7 more comments. Active Oldest Votes. Improve this answer. John Doe John Doe 5 5 silver badges 25 25 bronze badges.
Add a comment. For example:. If you want the command-line program to run without the user even knowing about it, define it as a Windows Service and it will run on a schedule. Summarizing, you have to checkbox for 'Run whether user is logged on or not'.
Task user credentials should be enter after pressing 'Ok'. I did this in a batch file: by starting the apps and sending them to the background. Not exact to the spec, but it worked and I could see them start.
You can seemingly have multiple explorer processes and kill them individually but I could not get it to work. Sign up to join this community. The best answers are voted up and rise to the top.
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. How can I execute a Windows command line in background? Ask Question. Asked 11 years, 3 months ago. Active 9 months ago. Viewed k times. Improve this question. Can you specify what you want to do? Do you want to perform a command on the command line in background or do you want to perform the whole command line in background, so it is unvisible from the desktop?
Duplicates this question on ServerFault. Add a comment. In that thread, Harry MC explains:. Use a command line tool to silently launch a process : Quiet. Employing any of the above solutions, based on your comfort level using VBS and third party tools or not, will at minimum reduce the visibility of the CMD window or outright remove it.
Have something to add to the explanation? Sound off in the the comments. Want to read more answers from other tech-savvy Stack Exchange users? Check out the full discussion thread here. Use Google Fonts in Word. Use FaceTime on Android Signal vs. Customize the Taskbar in Windows What Is svchost. Best Smartwatches. Best Gaming Laptops. Best Smart Displays. Best Home Security Systems.
Best External Solid State Drives. Best Portable Chargers. Best Phone Chargers. There are two additional options in SilentCMD.
Append the option to the end of the command. Download SilentCMD. The following command can be used at boot or in a shortcut to run a batch file silently:. The exec and hide commands are used to execute the script and hide any console windows from opening. A desktop shortcut can be created manually or you can tell NirCMD to create a shortcut from the command line with the included commands so the silent script is ready to run.
The above will create a desktop shortcut called SilentBatch which will silently execute the MyBatchFile. On double clicking the NirCMD executable it will offer the option to copy itself to the Windows directory so you only have to use nircmd. For full information about the wealth of commands available, have a read of the full NirCMD Help file. Download NirCMD. We also have a little tool that can launch a batch file silently.
Silent Batch Launcher is designed to be simple to use and provide a slightly different option to the other tools here. Run the executable and you will be asked to browse for a batch file. An INI file containing the path to the script will then be created next to the executable. Every time you run Silent Batch Launcher from then on it will execute the same batch file as long as the INI file is present.
To run a different script, delete the INI file or hold Shift while launching the tool and it will popup the file requester. The INI file name will match the EXE file name so you can have differently named occurrences of the tool in the same folder.
0コメント