Use "cmd /c" but hide the console window
I have a shortcut running this command when clicked:
cmd /c "full path to my batch file". When I use it, it does what it is supposed to do, but in the process the ugly console window pops up. Is there any way to make this command start a hidden or at least minimized window?
Use the command
start with switch
/min to start
cmd in minimized window:
start /min cmd /c "full path to my batch file"
Use, synonyms: utilize, make use of, avail oneself of, employ, work, operate, wield, ply, apply, maneuver, manipulate, put to use, put into service, find a use for, resort to, exercise, exert, bring into play, practice, implement, draw on Use definition, to employ for some purpose; put into service; make use of: to use a knife. See more.
I found this solution :
Create a launch.vbs file and add
Set WshShell = CreateObject("WScript.Shell") WshShell.Run chr(34) & "C:\Batch Files\syncfiles.bat" & Chr(34), 0 Set WshShell = Nothing
Replace "C:\Batch Files\syncfiles.bat" by your absolute or relative path file name.
Use Synonyms, Use Antonyms, describing an action or state of affairs that was done repeatedly or existed for a period in the past. Define use. use synonyms, use pronunciation, use translation, English dictionary definition of use. v. used, us·ing, us·es v. tr. 1. To put into service or employ for a purpose: I used a whisk to beat the eggs. The song uses only three chords. 2.
Create a VBScript file as a shell to start it.
' Launcher.vbs If WScript.Arguments.Count = 0 Then WScript.Quit 1 End If Dim WSH Set WSH = CreateObject("WScript.Shell") WSH.Run "cmd /c " & WScript.Arguments(0), 0, False
You may want to embed this as a Here Document in your batch file. See heredoc for Windows batch?
use, be or become familiar with someone or something through experience. to put something such as a tool, skill, or building to a particular purpose : This glass has been used - could you get me a clean one? [ + to infinitive ] Use scissors to cut the shapes out. Going on the expedition gives me a chance to use all the training I've had.
Right-click on the shortcut icon and choose "Properties."
On the "Shortcut" tab, choose the "Run" type you desire from the dropdown menu.
START command has a /B switch to start without creating a window. Use
START /? to read all about it.
USE, the action of using something or the state of being used for some purpose. use, employ, utilize mean to put into service especially to attain an end. use implies availing oneself of something as a means or instrument to an end. willing to use any means to achieve her ends employ suggests the use of a person or thing that is available but idle, inactive, or disengaged.
Use, "a member of staff is present when the pool is <b>in use</b>" USE Credit Union branches remain temporarily closed to walk-ins. In-person appointments can be made 24 hours in advance. Learn More. Close Routing #322281691.
Use dictionary definition, NounEdit. use (countable and uncountable, plural uses). The act of using. quotations ▽. This handout explains the most common uses of three kinds of punctuation: semicolons (;), colons (:), and dashes (—). After reading the handout, you will be better able to decide when to use these forms of punctuation in your own writing. The semicolon looks like a comma with a period above it, and this can be a good way to remember what it does.
Use definition and meaning, use meaning: 1. to put something such as a tool, skill, or building to a particular purpose: 2. to reduce the…. Learn more. How to Use a Semicolon Correctly. The most common use of the semicolon is to join two independent clauses without using a conjunction like and. Do you use a capital letter after a semicolon? The general answer is no. A semicolon should be followed by a capital letter only if the word is a proper noun or an acronym.