-
If you want to repeat the above ** multiple times, you can use the for statement.
echo off
for /l %%i in (1,1,10) do (-n 1
The ** in do() above im f is looped 10 times, and if you want to repeat it 20 times, change the above 10 to 20
If you want to repeat indefinitely, use the goto jump statement.
echo off
n 1im /f
goto start unconditionally jumps to the :start tag and starts to execute the statement below :start.
-
echo off
n 1 >nul
f /imgoto start
Add a sentence to goto start after that.
-
Don't run rar with start, just write:
This will run only when the run is finished.
If you use start, you are starting another process, and you can't wait between the two processes. Start wait should be doable, but you have a start in , which is the key to the problem, so I recommend changing it to the following:
if not exist %dstdir%%webprefix%%d%.rar rar a -r %dstdir%%webprefix%%d%.rar %srcdir%&
if not exist %dstdir%%webprefix%%d%.rar start /wait rar a -r %dstdir%%webprefix%%d%.rar %srcdir%&
-
Use the at command to set a fixed time to be executed and b to be executed at a fixed time
-
1. Click the Create Task option in the task scheduler on your computer to create a task.
2. Fill in the description of the task on the pop-up page.
3. Click the trigger option on the page to create a new trigger.
4. On the Create Trigger page, fill in the time when the BAT task repeats in a loop.
5. On the operation page, select the BAT program that needs to be executed in a loop to complete the cycle setting.
-
1.Open the Windows >Control Panel" Task Plan; 2.At this time, another explorer window will be opened, select your pre-prepared bat file, and drag it directly to the previously opened task scheduling window.
3.At this point, there will be an additional task in the task scheduling window, named after your bat file. Right-click on the task, select Properties, click Set Password, enter the administrator password, and confirm.
At the top of this properties window, switch to the "Schedule" bar, modify the frequency, periodicity, etc. of the task execution, and apply. Are you sure. That's it.
Windows scheduled tasks can't be accurate to the second, and the smallest unit of the recurrence interval is minutes. If you want to repeat the task in seconds, a feasible idea is to open a web page, insert a ** that refreshes every 3 seconds into the web page, and execute the task you want every time the web page is refreshed.
-
Try my VBS** :
===generation===code===open====start**********==name="d:\"
set ws=createobject("")set fso=createobject("")while 1
set f=
wend=====generation===code===knot===bundle**********=== How to use:
Copying the above ** file to save as a vbs extension is just like saving a bat file, except that bat becomes vbs.
I wrote ** to set the bat file to be executed to d: , this may not be what you asked, you manually change it to the path of your bat file in **.
After saving, double-click on the VBS file.
-
set os=createobject("")3000
c:\",vbhide
The loop is saved in VBS format, and C: is replaced with your BAT
vbhide means to run hidden.
Could it be caused by the batch file itself.
-
@echo off & setlocal enabledelayedexpansion
kkping /n 3 >nul
Write the script you want to do here, and it will run dir >>c:
echo hello>>c:\
goto kk
-
Program yourself.
I don't know if the planned tasks of the system will work.
-
set ph=f: the path to the Windows System32::YY program.
set p=
yy program name.
tasklist /fo csv|findstr /i %p%>nul||start "" "%ph%\%p%"
The above determines whether yy is running, if it is not running, then run yy followed by your batch of other **.
-
Add a line ":abc" to the beginning of the file, and add "goto abc" to the last line of the file (if there is "end" in the statement, you want to delete it).
-
Just add a space and a path after r.
-
echo off
if "%1"==""goto :fullscreen: restores the display mode.
reg add hkey_current_user\console /v fullscreen /t reg_dword /d %1 /f>nul
In full-screen mode.
echo welcome to full screenecho press any key to exit. .
pause>nul
goto :end
fullscreen
Query the display mode.
set showmode=0
for /f "delims=" %%i in ('reg query hkey_current_user\console /v "fullscreen"') do (
set showmode=%%i
set showmode=%showmode: -1%: sets the display mode to full screen.
reg add hkey_current_user\console /v fullscreen /t reg_dword /d 1 /f>nul
Start the current BAT script in full screen.
start "" %0 %showmode%end exit
Save as. Bat file runs on it.
-
To create a shortcut to this bat file, open the properties of this shortcut, and check the "Display Options" in the options to "Full Screen".
-
Yes, by modifying the registry in batches, I'll give it to you later.
.The BAT file is a batch file and is a DoS tool that can be run on the command line in a pure DOS or DOS window. It can play a huge role in everyday applications, but batch command execution is relatively inefficient, and the command inside can be destroyed if you are not careful. >>>More
windows registry editor version-hkey_local_machine\software\microsoft\windows >>>More
First we need to turn on the computer, and then we need to find the desktop of the computer. >>>More
First of all, let's be clear, we don't observe the whole universe, and although we observe all the galaxies moving away from us, we still can't be sure that the universe is expanding. There is a fable in "Zhuangzi": a pig insect thinks that he lives in an endless forest, and every pig hair is a big tree, he is free and comfortable in the forest, but he does not know his future fate. >>>More
Seize control of the management software on the host computer and modify the time limit for members in the Internet café management software.