Scene:
When executing the bat file through the Windows timing task, the CMD window will pop up. If you do not want to be disturbed by the black box pop up, you can solve the problem by the following methods.
Solutions:
Add the following code at the beginning of the batch file:
When executing the bat file through the Windows timing task, the CMD window will pop up. If you do not want to be disturbed by the black box pop up, you can solve the problem by the following methods.
Solutions:
Add the following code at the beginning of the batch file:
if "%1"=="hide" goto CmdBegin
start mshta vbscript:createobject("wscript.shell").run("""%~0"" hide",0)(window.close)&&exit
:CmdBegin
Read More:
- Windows batch: File running in the background
- PHP in Windows combined with bat batch processing to achieve multi process verification proxy server function
- Running bat file, a flash problem
- The solution to the flash of. Bat file
- Bash modifies the file names in the specified folder through MAC terminal (batch modification)
- Adding prefixes to file names in batch by shell under mac
- In windows, “cmake” is not an internal or external command, nor a runnable program or batch file.
- Error = 2, no such file or director is prompted in the lower left corner of the MAC pycharm running file
- raise ValueError(‘Expected input batch_size ({}) to match target batch_size ({}).‘
- Batch modification of file names on MAC Linux rename command line
- [Android] button uses the custom drawable file to set the background, and runs “error inflating class button”
- Batch error reporting in Java spring
- How to receive localdatetime type in background
- How do I change the default background color of all FIGURE objects created in MATLAB
- SAP Spartacus encountered an error in the background of Commerce cloud when using the product configuration function
- Error kernel restart: restart failed was reported in the background of jupyter notebook
- Ms- settings:personalization-background terms of settlement
- Syntax error near unexpected token ‘$’Do is reported when running bash file
- run.bat Operation flashback
- Tomcat opens the startup.bat The reason for the flash