Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/displague/getip
return "set var=value" lines based on win32-api calls
https://github.com/displague/getip
Last synced: 8 days ago
JSON representation
return "set var=value" lines based on win32-api calls
- Host: GitHub
- URL: https://github.com/displague/getip
- Owner: displague
- License: gpl-2.0
- Created: 2014-06-22T03:35:53.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-12-04T18:48:05.000Z (18 days ago)
- Last Synced: 2024-12-13T06:35:07.355Z (10 days ago)
- Language: C
- Homepage: https://ftp.sunet.se/mirror/archive/ftp.sunet.se/pub/simtelnet/win95/util/getipv4.zip
- Size: 42 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GetIP v.4b
**Author:** Marques Johansson
**Contact:** @displague## Overview
GetIP is a lightweight utility originally designed for Windows systems to fetch and export environment variable settings related to system information. The software leverages Win32 API calls and produces outputs suitable for integration into batch scripts.
The utility was initially hosted on [Simtel.net](https://ftp.sunet.se/mirror/archive/ftp.sunet.se/pub/simtelnet/win95/util/getipv4.zip) (1999), a historic repository for shareware software.
**⚠️ Note:** This project is preserved here for personal archival purposes. GetIP has since been superseded by more modern tools such as PowerShell, which provides better functionality and broader support.
---
## Features
- Retrieve and set system variables such as:
- Hostname and IP address.
- User information.
- Registry values.
- RAS (Remote Access Service) connection details.
- File metadata (size, creation date, etc.).
- Network resource details.
- Outputs commands in the format `SET VARNAME=VALUE`.
- Supports batch integration for automation in Windows environments.---
## Usage
### Command Line Options
Run the utility with the following options to retrieve specific information:| Option | Description |
|--------|--------------------------------------|
| `?` | Display a basic help screen. |
| `v` | Display the version of this utility. |
| `h` | Retrieve host information. |
| `m` | Fetch MAC address details. |
| `r` | RAS (Remote Access Service) details. |
| `u` | Logged-in user information. |
| `d` | Current date in ISO format. |
| `t` | Current time in 24-hour format. |
| `R` | Retrieve registry key values. |
| `fp` | Parse file paths for server, share, etc. |
| `fd` | Fetch file date. |Example:
```cmd
getip hrd > vars.bat
call vars.bat
```---
## Technical Details
### Files
- `getip.c`: Main source file implementing the majority of functionality.
- `getip.h`: Header file with function declarations and constants.
- `getip-nt.c`: Specialized functionality for NT-based Windows systems.
- `main.c`: Entry point for the application.
- `getip.txt`: Documentation for the utility.---
## Deprecation Notice
This utility was a valuable tool in the early days of Windows scripting, but modern tools such as PowerShell have rendered it largely obsolete. It is retained here for archival and educational purposes.
---
## License
GetIP is distributed under the GNU Library General Public License. You are free to modify and redistribute it under the terms of the license.