Tag:Batch processing

  • IP security policy batch script and comments (Netsh)

    Time:2020-8-7

    “Netsh” is a command-line scripting utility provided by Windows 2000 / XP / 2003 operating system itself. It allows users to display or modify the network configuration of the running computer locally or remotely.Netsh IPSec, heard that only Windows 2003 can run. It was tested in 2003.IP security policy, my own understanding is: a security […]

  • Code for setting IP security policy with batch processing

    Time:2020-8-4

    You can only reply after browsing  ipseccmd -w REG -p “XIAOWANG” -r “Block ICMP” -f *+0:ICMP -n BLOCK -x       Open online neighbor.bat   Copy codeThe code is as follows:   ipseccmd -w REG -p “XIAOWANG” -r “Block TCP/80” -f *+0:80:TCP -n PASS -x   ipseccmd -w REG -p “XIAOWANG” -r “Block TCP/135” -f *+0:135:TCP -n PASS -x […]

  • Some batches written by Kira freedom

    Time:2020-8-3

    Process management batch miniaturization (almost the first) Copy codeThe code is as follows: @echo off Title Process Managementcolor 3F Echo process management batch miniaturization versionecho. Echo lxsea Kira freedomEcho is suitable for simple operations that cannot be opened by task manager and virus judgment at ordinary timesecho www.lxsea.com tasklist pause color B1 Echo save data […]

  • Code of creating folder with date by batch processing

    Time:2020-7-8

    Core code: Copy codeThe code is as follows: @echo off MD “photo% date: ~ 0,4% date: ~ 5,2%” The current date% date: ~ 0,4% is a year and% date: ~ 5,2% is a month

  • Preprocessing implementation code in batch processing

    Time:2020-6-30

    Reprinted from nxhujiee, last edited by LJ_ Preprocessing in suntb batch processing━━━━━━━━━━━━━━━━━━━━━━━━━━ If you are familiar with the processing mechanism of the caret character “^”, you can read on. NoPlease refer to the related articles of caret character first. 1、 What does preprocessing do? According to my experience, preprocessing is to replace variable values and […]

  • The method of directly executing VBS in batch processing

    Time:2020-6-22

    Sample batch: test.bat Code: Copy codeThe code is as follows: :On Error Resume Next Sub bat echo off & cls echo Batching_codez_here_following_vbs_rules & pause start wscript -e:vbs “%~f0” Exit Sub End Sub MsgBox “This is vbs” The above code cleverly uses the syntax features of bat and VBS to make the same file cmd.exe Identify […]

  • Batch get the bat code of IP generated TXT text

    Time:2020-6-10

    The first method: Copy codeThe code is as follows: @echo off <“%~f0” more +5 >tmp.vbs cscript //NoLogo /e:vbscript tmp.vbs %1>ip.txt echo >nul && del tmp.vbs goto:eof set oDOM = WScript.GetObject(“http://www.duosc.com/ip.aspx”) do until oDOM.readyState = “complete” WScript.sleep 200 Loop s=oDOM.documentElement.innerText set re = New RegExp re.Pattern=”(\d+)\.(\d+)\.(\d+)\.(\d+)” For Each m in re.Execute(s) WScript.Echo m Next The second […]

  • Code to disable (enable) group policy using batch

    Time:2020-6-9

    Disable (enable) group policy with batch processingregsvr32 /s /u gpedit.dll Disableregsvr32 /s gpedit.dll Enable Using this command alone can still disable group policy, but the result is-At this time, the running group strategy is basically an empty shell! Using the following batch processing will solve such problems perfectly! Compile the following code into a bat […]

  • Batch instance code tutorial collection

    Time:2020-6-6

    Batch instance code tutorial——————————————————————————– Batch program delete itself.batEcho sometimes we need a batch program to delete itself after execution. We can use del% 0For example: Copy codeThe code is as follows: @echo off Echo press any key and I will delete myselfpause del %0 ——————————————————————————– Batch send folder shortcut to desktop Copy codeThe code is […]

  • The most basic batch processing to achieve progress bar effect

    Time:2020-6-3

    Copy codeThe code is as follows: @echo off echo. echo. echo. set /a a=0 :a set /a a+=1 for %%a in (▏ ▎ ▍ ▌ ▋ ▊ ▉) do (set /p=%%a<nul &ping -n 1 127.1>nul &ping -n 1 127.1>nul &ping -n 1 127.1>nul &set /p= <nul) set /p=█<nul if %a% lss 8 (goto :a) pause

  • Pretty batch progress bar effect code

    Time:2020-6-2

    Copy codeThe code is as follows: @echo off mode con cols=113 lines=15 &color 9f :starthome cls set a=^set /p=■%b%^<nul^&ping/n 0 127.1^>nul^& echo. The echo program is initializingecho. echo ┌──────────────────────────────────────┐ set/p=  <nul&%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a%%a% echo 100%% echo └──────────────────────────────────────┘ set b= set a=■ set /a z=100 pause :start cls set a=%a%■■ set /a b+=5 set /a z-=5 echo. @Echo […]