mIRC Homepage
Posted By: MTec89 ftp - 03/08/03 03:48 PM
does someone have an old ftp upload script laying around?
i need to be able to login, and upload just one file (and over write the old file) to the main directory and disconnec\
Posted By: KingTomato Re: ftp - 03/08/03 08:56 PM
use a batch file..

[ftpupload.bat]
@ECHO OFF
FTP
OPEN <location>
<password>
STOR <filename>
QUIT


laugh
Posted By: MTec89 Re: ftp - 03/08/03 10:07 PM
where do i put login name?
i tried running it and it just says ftp>
anything i type is invalid command......

this cant be done in mirc using sockets?? mirc needs it....
Posted By: KingTomato Re: ftp - 03/08/03 11:31 PM
login and write down all the commands you use when you go throguh dos. Then in a batch file put all thos commands in the order you used them. then when u want to upload it, execute the batch file.
Posted By: MTec89 Re: ftp - 03/08/03 11:33 PM
i dont use dos i use bulletproof ftp client so idk what the commands are
Posted By: KingTomato Re: ftp - 03/08/03 11:53 PM
Start>>run "cmd"

type:

FTP
OPEN ftp.<site>.com

(you'll be asked for name & password)

<name>
<password>

(now you'll come to a prompt FTP>. Here you use the STAR command to send the filename)

STOR <filename>

(it will then send the fine (i believe in binary mode) Then use QUIT to close the FTP and EXIT to leave dos)

QUIT
EXIT
Posted By: MTec89 Re: ftp - 03/08/03 11:59 PM
first off cmd is for 2k/xp i have win 98

and i got everything except i cant figure out the STOR command
Posted By: KingTomato Re: ftp - 04/08/03 12:02 AM
try "help" in the ftp prompt
Posted By: MTec89 Re: ftp - 04/08/03 12:12 AM
i dont understand this i could only get the ftp promt to show once

now all it does is send the blinging cursor to the next line and it just acts like its busy, but it isnt doing anything
Posted By: Online Re: ftp - 04/08/03 01:06 AM
C:\Work>ftp -help
  • Displays command-line parameters
C:\Work>ftp
ftp> help
  • Displays valid FTP commands
Also, have a look at this tutorial.
Posted By: MTec89 Re: ftp - 04/08/03 01:07 AM
ftp -help didnt work either
Posted By: Online Re: ftp - 04/08/03 01:10 AM
I'm on win98 too, and the above worked fine. What's the error message you get?
Posted By: MTec89 Re: ftp - 04/08/03 01:15 AM
no error, it just doesnt do anything when i type ftp
Posted By: Online Re: ftp - 04/08/03 01:21 AM
Start -> Run -> command

Now a DOS window is open, and you have a c:\folder> prompt. Type ftp -help. What is displayed on the screen?
Posted By: MTec89 Re: ftp - 04/08/03 01:45 AM
rofl...im not stupid.

it just does not do anything after i hit return

ok a -few- restarts fixed it, heres what i get http://matrixn3t.net/mtec89/ftpdos.png
Posted By: MTec89 Re: ftp - 04/08/03 03:12 AM
so what command do i use?
Posted By: Online Re: ftp - 04/08/03 03:40 AM
Check out the tutorial, it explains how to upload a file using ftp.exe.
Posted By: MTec89 Re: ftp - 04/08/03 03:54 AM
i dont understand what command uploads the file
Posted By: Online Re: ftp - 04/08/03 04:42 AM
put filename - enclose file in quotes if it contains spaces. For example, put "c:\program files\file.txt".
Posted By: KingTomato Re: ftp - 04/08/03 06:46 AM
My mistake. I mean put, not stor. Stor is server side, rather than client.
© mIRC Discussion Forums