P
P
Pavel2017-08-03 15:52:20
cmd/bat
Pavel, 2017-08-03 15:52:20

How to store the name in a txt file and substitute it in bat?

there is a scripter

@Echo Off
ping -n 2 google.com|Find /I "TTL="||goto next
echo INET ON
ftp -s:ftp.txt -i pavelcmk.beget.tech
del /q c:\myfolder\*.txt
goto 1
:next
echo INET OFF
:1
Exit

uploads all txt files from a folder to FTP , ftp login and password are specified in ftp.txt , and how should the server also be specified separately in the file (pavelcmk.beget.tech)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Tsvetkov, 2017-08-03
@mrusklon

how can the server also be specified separately in the file (pavelcmk.beget.tech)?
Add to ftp.txt open pavelcmk.beget.tech .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question