i plan on releasing a tool to back up gamesaves for a certian game but i am having problems with batch telling it to get its text. i get returned with Wput but i want it to say ftp://SPECIFIED_USER_IN TEXT FILE:
Not quite sure if this is possible but i looked around(UPLOAD represents wput.exe) UPLOAD isnt the issue. the issue is telling it where to go.
@echo off
set /p user=./server_information/user.txt
set /p pass=./server_information/pass.txt
set /p host=./server_information/host.txt
ser world=worldname.txt
cd UploadingHandler
upload ftp://%user%:%pass@%host%:21/%world% %world%
pause
any help? Thanks.
edit:
if you need better understanding here is a treemap:
ROOT
UploadingHandler
epload.exe
-
Server_Information
Host.txt
user.txt
pass.txt
-
The
SET /Pcommand reads input from the console unless you redirect the input to be from another device, e.g. from a file. This is done using the<symbol:The
prompt textpart is optional. So, to give you an example using one of your files: