Windows has included batch files since before it existed… Batch files are really old! Old or not, I still could help us to automate common tasks. One common task is uploading files to a remote FTP server.
Requirements == Must have ftp account (username and password)
Steps (Syntax):
- Copy the codes below
- Open a notepad and paste into the notepad
- Change the parameter.. (FTPUsername, FTPPass, FTPServer, FTPWork, Filename)
- Save it as .bat (Example: uploadfile.bat)
@echo off
echo user FTPUsername> ftpcmd.dat
echo FTPPAss>> ftpcmd.dat
echo bin>> ftpcmd.dat
echo FTPWork Filename>> ftpcmd.dat
echo quit>> ftpcmd.dat
ftp -n -s:ftpcmd.dat FTPServer
del ftpcmd.dat
Do you understand?? Let's explain. Let say..
FTPUsername: mircop
FTPPass: mircop1234
FTPWork: put (Put is for upload)
Filename: test.txt (You have to create test.txt for dummy try only. The filename is the filename that you wanna upload/download)
FTPServer: ftp.mircop.com
THIS IS THE CODE CREATED FOR ABOVE EXAMPLE (USING PUT, MEANS THAT UPLOAD)
FTPUsername: mircop
FTPPass: mircop1234
FTPWork: put (Put is for upload)
Filename: test.txt (You have to create test.txt for dummy try only. The filename is the filename that you wanna upload/download)
FTPServer: ftp.mircop.com
THIS IS THE CODE CREATED FOR ABOVE EXAMPLE (USING PUT, MEANS THAT UPLOAD)
When you double click the batch file, it will shown as below in a prompt box@echo off
echo user mircop> ftpcmd.dat
echo mircop1234>> ftpcmd.dat
echo bin>> ftpcmd.dat
echo put test.txt>> ftpcmd.dat
echo quit>> ftpcmd.dat
ftp -n -s:ftpcmd.dat ftp.mircop.com
del ftpcmd.dat
Connected to ftp.mircop.com.220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------220-You are user number 1 of 50 allowed.220-Local time is now 10:19. Server port: 21.220-This is a private system - No anonymous login220-IPv6 connections are also welcome on this server.220 You will be disconnected after 15 minutes of inactivity.ftp> user mircop331 User mircop OK. Password required230 OK. Current restricted directory is /ftp> bin200 TYPE is now 8-bit binaryftp> put test.txt200 PORT command successful150 Connecting to port 2045226 File successfully transferredftp>quit
EXTRA INFORMATION:
1. The batch file uses the “echo” command to send text to the ftp server as if you had typed it. In the middle of the file you can add extra commands before the quit commands, potentionally a change directory command:
echo cd /pathname/>>ftpcmd.dat
If you like this post, kindly linkback to this post entry by copying one of the codes below..
URL Of Post:
Paste This HTML Code On Your Page:
You are very good, I like that judi deposit ovo
ReplyDeletepgslot 77 auto ทางเข้า PGSLOT หรือปากทางเข้า PGSLOT77 ทั้งสิ้นของพวกเราได้เอามาเก็บรวบรวมใว้ตรงนี้ที่เดียวให้กับทุกคนได้เลือกเข้ากันได้เลยที่พวกเราทำปากทางเข้า ใว้หลายๆทาง
ReplyDeletekuşadası
ReplyDeletemilas
çeşme
bağcılar
çorlu
CZS4T
https://saglamproxy.com
ReplyDeletemetin2 proxy
proxy satın al
knight online proxy
mobil proxy satın al
7Y8C