Position: Home page » Equipment » Mining hidden CMD window

Mining hidden CMD window

Publish: 2021-04-19 23:28:22
1. There are many methods, some with the help of small tool software, and some encapsulate bat files into exe applications. But relatively simple, you can rely on a few lines of vbs script code to hide bat running------------------------------ Set
shell
=
Wscript.createobject(" wscript.shell")< br />a
=
shell.run
(" Path: 92; File. Bat & quot;, 0)
--- the code in the dotted line and save it as *. VBS file -------- manually modify the path of bat file and file name!
2. ##########Start of batch body##########
3. @echo off
if "% 1" = " quot; h" goto start
mshta vbscript:createobject (" wscript.shell"). run("" quot; quot; nx0" quot; h" 0)(window.close)&exit
:start

203204; CMD
4. It seems impossible to minimize to the tray
there is a program hidden
5.

Solution:

1. First of all, the "Win + R" key combination opens the "run" window. Enter "OSK" to open the screen keyboard

6. 1) Compile the batch with bat2exe and select the invisible batch window
2) using wincmd, write a batch process and call wincmd's exec to start your bat
specific wincmd usage: exec! a.bat
7.

@echooffif"% 1"==& quot; h" gotobeginstartmsht avbscript:createobject (" wscript.shell"). run("& quot;& quot;%~ nx0"& quot; h", 0)(window.close)&& amp; exit:begin :: the following are normal batch commands, which can not contain pauseset / P and other interactive commands

if you double-click a batch, it is equivalent to the parameter is empty, and some applications need parameters, such as inputting shutdowm-s-t0 in the CMD window, where - s-t0 is the parameter. Shutdown is% 0, - s is% 1, - t is% 2, and so on. Let's skip the first line and look at the second line, which means to create a VBS program with mshta, and the content is: create object (& quot; wscript.shell"). Run (...). If the running batch is named a.bat, under C: , then% 0 represents C:: a.bat, and% ~ nx0 represents a.bat. H is the most important parameter% 1, and 0 indicates hidden operation. Because you double-click to run, the first batch% 1 is empty. If it doesn't hold, run the next sentence instead. Then open yourself again and pass the parameter h. at this time, if is established, jump to begin to run. These two lines are classic and can make batch processing run windowless

8. @echo off
if "% 1" == & quot; yes" goto begin
mshta vbscript:createobject (" wscript.shell"). run("%~ nx0 yes", 0) (window. Close) & & exit
: begin
:: start to run batch command from here, there will be no window prompt
:: working principle: use VBS background running script wscript.shell to run batch
9. There are many methods, some with the help of small tool software, and some encapsulate bat files into exe applications. But relatively simple, you can rely on a few lines of vbs script code to hide bat running------------------------------ Set shell = Wscript.createobject(" wscript.shell") < br />a = shell.run (" Path: 92; File. Bat & quot;, Copy the code in the dotted line and save it as *. VBS file -------- manually modify the path of bat file and file name!
Hot content
Inn digger Publish: 2021-05-29 20:04:36 Views: 341
Purchase of virtual currency in trust contract dispute Publish: 2021-05-29 20:04:33 Views: 942
Blockchain trust machine Publish: 2021-05-29 20:04:26 Views: 720
Brief introduction of ant mine Publish: 2021-05-29 20:04:25 Views: 848
Will digital currency open in November Publish: 2021-05-29 19:56:16 Views: 861
Global digital currency asset exchange Publish: 2021-05-29 19:54:29 Views: 603
Mining chip machine S11 Publish: 2021-05-29 19:54:26 Views: 945
Ethereum algorithm Sha3 Publish: 2021-05-29 19:52:40 Views: 643
Talking about blockchain is not reliable Publish: 2021-05-29 19:52:26 Views: 754
Mining machine node query Publish: 2021-05-29 19:36:37 Views: 750