-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReceiveFiles.bat
More file actions
45 lines (40 loc) · 1.22 KB
/
ReceiveFiles.bat
File metadata and controls
45 lines (40 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
@echo off
echo ====================================================
echo Windows XP File Receiver Launcher
echo ====================================================
echo.
echo This launcher will help you receive files on this computer.
echo.
echo Would you like to:
echo 1. Listen on all network interfaces (recommended)
echo 2. Listen on a specific IP address
echo.
set /p choice=Enter choice (1 or 2):
if "%choice%"=="2" (
echo.
echo Please enter the IP address to listen on:
set /p listen_ip=IP Address:
if "%listen_ip%"=="" (
echo Error: IP address is required for this option.
echo Press any key to exit...
pause > nul
exit /b
)
echo.
echo Starting file receiver on IP: %listen_ip%
echo.
echo Received files will be saved to the "received" folder.
echo.
echo Press Ctrl+C to stop the program.
echo.
file_transfer_xp.exe receive %listen_ip%
) else (
echo.
echo Starting file receiver on all network interfaces.
echo.
echo Received files will be saved to the "received" folder.
echo.
echo Press Ctrl+C to stop the program.
echo.
file_transfer_xp.exe receive
)