Because of the need to learn a bit of Windows batch processing, you can write some bat scripts to automate the operation.
Batch file renaming
- For WIN10 users, the lock screen of Windows Focus pictures are some very good-looking, you can copy down as wallpaper.
- The picture path is
C:\Users\username\AppData\Local\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets
, username is your user name
- You will find that the file name in the folder is a string of characters and cannot be opened, you can rename them individually, but it is too cumbersome to use our batch processing.
- Right-click inside the folder, create a new text document, and modify the suffix to. bat save.
- Edit the Bat file, write
ren *.* *.png
it, save it.
- Double-click Run Bat script file, you will find all the files become PNG suffix, including bat script, then select the picture you need.
- Windows cleans up this folder regularly, so you don't have to worry about its contents.
To open multiple pages in bulk
- Use the default browser to open the Web Page command for
start www.baidu.com
- One way to use a for loop is to
for /l %%i in (start,step,end) do ()
- One way to use the IF statement is to
if %%i==5
compare the variables with quotes, such asif "!cnt!"=="5"
- Set
choice /t 30 /d y /n >nul
The delay, 30 is the number of seconds
- Close browser
taskkill /f /t /im MicrosoftEdge.exe
- Set
set /a cnt = 0
the variable, which is included with the percent of the reference, and the reference variable in the For loop needs to turn on the delay variable, which is used when the script starts to join and setlocal enabledelayedexpansion
references the variable!! Contains
- Open five pages, 30 seconds after the script is closed as follows:
@echo offfor /l %%i in (0,1,5) do (start www.baidu.com)choice /t 30 /d y /n >nultaskkill /f /t /im MicrosoftEdge.exe
Windows Batch Processing