Skip to content

Commit cb3a5c8

Browse files
committed
Blaze Scripts
1 parent 0af0a93 commit cb3a5c8

File tree

3 files changed

+92
-4
lines changed

3 files changed

+92
-4
lines changed

CheckNetwork/Readme.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Check Network and Ping Gateway Scripts
2+
3+
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.

ProxyImport-Export/Readme.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Proxy Configuration Export/Import Script
2+
3+
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.

Readme.md

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,33 @@
1-
# Windows Scripts Repository
1+
# Windows Scripts Repository (Blaze Scripts)
22

33
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.
44

5+
<pre>
6+
____ _ _____ _ _
7+
| _ \| | / ____| (_) | |
8+
| |_) | | __ _ _______ | (___ ___ _ __ _ _ __ | |_ ___
9+
| _ <| |/ _` |_ / _ \ \___ \ / __| '__| | '_ \| __/ __|
10+
| |_) | | (_| |/ / __/ ____) | (__| | | | |_) | |_\__ \
11+
|____/|_|\__,_/___\___| |_____/ \___|_| |_| .__/ \__|___/
12+
| |
13+
|_|
14+
</pre>
15+
516
## Repository Contents
617

718
The repository is organized into the following components:
819

9-
### 1. CheckNetwork
20+
### 1. [CheckNetwork](/CheckNetwork/Readme.md)
1021

1122
This component provides scripts to check network connectivity and ping the default gateway.
1223

24+
- `Readme.md`: Instructions and details specific to the CheckNetwork scripts.
1325
- `CheckInternet.bat`: A batch script that checks internet connectivity by pinging a reliable host.
1426
- `CheckInternet.ps1`: A powershell script that checks internet connectivity by pinging a reliable host.
1527
- `pingGateway.bat`: A batch script that retrieves the default gateway and continuously pings it.
1628
- `pingGateway.ps1`: A powershell script that retrieves the default gateway and continuously pings it.
1729

18-
### 2. Proxy
30+
### 2. [Proxy](/Proxy/Readme.md)
1931

2032
This component contains scripts related to proxy configuration management.
2133

@@ -24,13 +36,22 @@ This component contains scripts related to proxy configuration management.
2436
- `set_proxy.ps1`: A PowerShell script that sets the proxy server and port in Windows using registry modifications.
2537
- `set_proxy.vba`: A VBA script for Microsoft Excel that sets the proxy server and port in Windows using registry modifications.
2638

27-
### 3. ProxyImport-Export
39+
### 3. [ProxyImport-Export](/ProxyImport-Export/Readme.md)
2840

2941
This component provides scripts for exporting and importing proxy configurations.
3042

43+
- `Readme.md:` Instructions and details specific to the ProxyImport-Export scripts.
3144
- `config_proxy.txt`: A sample file used for exporting and importing proxy configurations.
3245
- `proxyimport_export.bat`: A batch script that allows for the export and import of proxy configurations.
3346

47+
### 4. [TraceRoute](/TraceRoute/Readme.md)
48+
49+
This component provides scripts for performing traceroute.
50+
51+
- `Readme.md`: Instructions and details specific to the TraceRoute scripts.
52+
- `traceRoute.bat`: Batch script for performing traceroute.
53+
- `traceRoute.ps1`: PowerShell script for performing traceroute.
54+
3455
## Usage
3556

3657
### PowerShell Script

0 commit comments

Comments
 (0)