About a batch file

Updated on technology 2024-05-25
4 answers
  1. Anonymous users2024-02-11

    Write it directly.

    echo off

    if exist del

    If there is a delete it.

    ipconfig /all >

    Enter the contents of the ipconfig all command to.

    if exist del

    Ditto. find "physical address"> is looking for the physical address and outputting that line to for f"skip=2 tokens=12" %%m in ( do set mac=%%m

    Set Skip the first two lines The string in column 12 is assigned to the variable mac means that the mac address is assigned to the variable.

    if exist del

    Ditto. find "ip address"Ditto. for /f "skip=2 tokens=15" %%i in ( do set ip=%%i

    Ditto. arp -s %ip% %mac%

    Bind the above IP address to MAC

    It's what I found above (I don't know what's the use of binding myself?) )del

    deldel

    Delete the temporary files generated above.

    Ditto. gatemac

    echo gateip:%gateip%

    ping %gateip% -t -n 1ping the gateway once.

    startecho gatemac: %gatemac%arp -s %gateip%\gatemac%bind gateway mac with IP

    exit.

  2. Anonymous users2024-02-10

    You may take the IP address and MAC address information of the local NIC and add it to the address pool.

  3. Anonymous users2024-02-09

    It seems to be killed.

    I've seen it.

  4. Anonymous users2024-02-08

    There are three types of executable programs: com exe and bat.

    BAT is different from the first two in that it is a batch file (regardless of Windows or DOS). A bat file is actually a combination of syntax commands or executables. It can be implemented through a texter such as Notepad, where the system invokes commands or other files based on the contents.

    Suffice it to say, BAT is actually a text file.

    A com exe is a file with an executable structure. Their establishment requires the use of specialized compilation software. (Their structure is much more complex).

    It is an installer for Microsoft NT core systems (including WinNT, Win2000, WinXP, etc.), and it is not a batch file type.

Related questions
9 answers2024-05-25

Suppose the server IP is, and then share the directory of abc, and set it to anyone can modify it, the following is **: >>>More

8 answers2024-05-25

echo off

taskkill /f /t /im >>>More

10 answers2024-05-25

attrib c: windows system32 +h, pay attention to the spaces. >>>More

11 answers2024-05-25

Open the "Notepad Program" ((or right-click on the blank space of the desktop "New "New "New Text Document" to create a new text document, and a "New Text File" will appear on the desktop to open it)) and then copy the netsh dump >d: to the open file window, then click on the "Menu Bar" to save as , after clicking a window will appear, change the file name to. >>>More

3 answers2024-05-25

1. Create a new folder on the computer, create a new "txt" file, and name it. >>>More