You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CheckNetwork and Ping Gateway scripts are designed to monitor network connectivity and ping the default gateway respectively. These scripts are intended for Windows operating systems.
4
+
5
+
## Check Network Script
6
+
7
+
The CheckNetwork script allows you to monitor network connectivity and check if an internet connection is active. Here's how to use it:
8
+
9
+
1. Run the script.
10
+
2. The script will continuously check the network connection and display the status in the console.
11
+
3. If the network connection is active, the script will display "Network connection is active."
12
+
4. If the network connection is down, the script will display "Network connection is down."
13
+
5. The script will continue to check the network connection at regular intervals.
14
+
15
+
Please note the following details about the CheckNetwork script:
16
+
17
+
- The script uses the `ping` command to check network connectivity by pinging a reliable external server (in this case, `google.com`).
18
+
- The `%errorlevel%` variable is used to determine the success or failure of the ping command.
19
+
- You can customize the script by modifying the ping target or adjusting the interval between network checks.
20
+
21
+
## Ping Gateway Script
22
+
23
+
The Ping Gateway script allows you to ping the default gateway, helping you verify connectivity to your local network. Follow these steps to use it:
24
+
25
+
1. Run the script.
26
+
2. The script will determine the default gateway and display its IP address.
27
+
3. The script will then start pinging the default gateway continuously.
28
+
4. The ping results will be displayed in the console, providing information on the response time and any timeouts.
29
+
30
+
Here are some additional details about the Ping Gateway script:
31
+
32
+
- The script retrieves the default gateway IP address from the Windows routing table.
33
+
- The `ping` command is used to send ICMP echo requests to the default gateway.
34
+
- The script will continue pinging the gateway until you manually terminate it.
35
+
36
+
## Prerequisites
37
+
38
+
- These scripts require a Windows operating system.
39
+
- Ensure that you have the necessary permissions to run batch scripts on your system.
This script allows you to export and import proxy configuration settings in Windows.
4
+
5
+
## Usage
6
+
7
+
1. Run the script.
8
+
2. Choose an option from the main menu by entering the corresponding number:
9
+
-**1. Export Proxy Configuration**: Export the current proxy configuration settings.
10
+
-**2. Import Proxy Configuration**: Import proxy configuration settings from a file.
11
+
-**3. Exit**: Terminate the script.
12
+
3. Follow the instructions provided by the script.
13
+
14
+
## Instructions
15
+
16
+
### Export Proxy Configuration
17
+
18
+
Choose the "Export Proxy Configuration" option to export the current proxy configuration settings. The script will export the settings to a file named `config_proxy.txt`.
19
+
20
+
### Import Proxy Configuration
21
+
22
+
Choose the "Import Proxy Configuration" option to import proxy configuration settings from a file. The script will prompt you to specify the file to import (`config_proxy.txt`). It will then import the settings from the file into the Windows registry.
23
+
24
+
## Note
25
+
26
+
- This script works by exporting and importing the proxy configuration settings from the Windows registry (`HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings`).
27
+
- Ensure that you have the necessary permissions to access and modify the Windows registry.
28
+
- The exported proxy configuration file (`config_proxy.txt`) will be overwritten if it already exists during the export process.
Copy file name to clipboardExpand all lines: Readme.md
+25-4Lines changed: 25 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,33 @@
1
-
# Windows Scripts Repository
1
+
# Windows Scripts Repository (Blaze Scripts)
2
2
3
3
Welcome to the Windows Scripts Repository! This repository contains a collection of scripts for various Windows tasks, including network connectivity checks and proxy configuration management.
0 commit comments