This commit is contained in:
2025-08-27 15:15:59 +03:00
parent 6a841e3cc0
commit 8324a26705
7 changed files with 578 additions and 182 deletions

View File

@@ -34,6 +34,19 @@ Main script that handles:
DO gomag-vending.prg
```
### Running from Windows Command Line
Use the provided batch file for easy execution:
```cmd
run-gomag.bat
```
Or directly with Visual FoxPro executable:
```cmd
"C:\Program Files (x86)\Microsoft Visual FoxPro 9\vfp9.exe" -T "path\to\gomag-vending-test.prg"
```
The batch file uses `%~dp0` to automatically detect the current directory, making it portable across different locations.
### Testing Connectivity
The script includes a `TestConnectivity()` function for internet connectivity testing.
@@ -54,8 +67,9 @@ The script includes a `TestConnectivity()` function for internet connectivity te
## File Structure
```
/
├── gomag-vending.prg # Main application script
── gomag_products_*.json # Generated API response files (timestamped)
├── gomag-vending-test.prg # Main application script
── run-gomag.bat # Windows batch file for easy execution
└── gomag_products_*.json # Generated API response files (timestamped)
```
## Configuration Requirements