Win10 start mining bat
C: & # 92; ProgramData\ Microsoft\ Windows\ Start Menu\ Programs\ Startup
just put bat here.
Code writing:
-
reg add HKLM / software / Microsoft / Windows / run / V random character / T reg_ SZ / d the location of your bat
-
this can add a startup key called "random character" to the registry of the machine, which is used to start and run the file "your bat location"
The -
bat file is a batch file under DOS. A batch file is an unformatted text file that contains one or more commands. Its file extension is. Bat or. CMD. At the command prompt, type the name of the batch file, or double-click the batch file, and the system will call cmd.exe to run the commands one by one according to the order in which they appear. Using batch files (also known as batch programs or scripts) can simplify routine or repetitive tasks
< / OL > -
% - I - remove any quotation marks (& quote;), Expand% I
-
% ~ fi - expand% I to a fully qualified pathname
-
% ~ di - expand% I to only one drive letter
-
% ~ pi - expand% I to only one path
-
% ~ Ni - expand% I to only one file name
-
% ~ Xi - expand% I to only one file extension
-
% ~ Si - expand% I to only one file name Path contains only short name
-
% ~ Ai - file attributes to extend% I to file
-
% ~ Ti - date / time to extend% I to file
-
% ~ Zi - extend% I to file size
-
% ~ $path: I - find the directory listed in the path environment variable, and extend% I
-
to the first fully qualified name found. If the environment variable
-
is not defined or the file is not found, this key combination will expand
< / OL >
option syntax
There are many methods
methods 1. Get a bat and double-click
< pre t = "code" L = "CPP" > echoseta = 1. Bat
for / F & quot; delims="%% iin(' dir/b/s%a%') do(
regadd" HKEY_ LOCAL_ un"/ vbat1.bat/t" reg_ sz"/ D%% I / F
)
pause < / pre >
method 2. Directly add
click Start - run - enter gpedit.msc - OK - computer configuration - Windows settings - script (start / shut down), double-click "start", click Add - Tour - select your bat, and then confirm - apply
1、 First, create a "shortcut" on the desktop for the program you want to add as a boot entry< br />