|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 742 |
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\
|
|
|
|
Joined: Jan 2003
Posts: 3,012
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 3,012 |
use a batch file.. [ftpupload.bat] @ECHO OFF FTP OPEN <location> <password> STOR <filename> QUIT
-KingTomato
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 742 |
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....
Last edited by MTec89; 03/08/03 10:33 PM.
|
|
|
|
Joined: Jan 2003
Posts: 3,012
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 3,012 |
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.
-KingTomato
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 742 |
i dont use dos i use bulletproof ftp client so idk what the commands are
|
|
|
|
Joined: Jan 2003
Posts: 3,012
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 3,012 |
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
-KingTomato
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 742 |
first off cmd is for 2k/xp i have win 98
and i got everything except i cant figure out the STOR command
|
|
|
|
Joined: Jan 2003
Posts: 3,012
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 3,012 |
try "help" in the ftp prompt
-KingTomato
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 742 |
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
|
|
|
|
Joined: Dec 2002
Posts: 1,922
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,922 |
C:\Work>ftp -help - Displays command-line parameters
C:\Work>ftp ftp> help - Displays valid FTP commands
Also, have a look at this tutorial.
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 742 |
ftp -help didnt work either
|
|
|
|
Joined: Dec 2002
Posts: 1,922
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,922 |
I'm on win98 too, and the above worked fine. What's the error message you get?
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 742 |
no error, it just doesnt do anything when i type ftp
|
|
|
|
Joined: Dec 2002
Posts: 1,922
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,922 |
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?
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 742 |
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
Last edited by MTec89; 04/08/03 01:54 AM.
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 742 |
so what command do i use?
|
|
|
|
Joined: Dec 2002
Posts: 1,922
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,922 |
Check out the tutorial, it explains how to upload a file using ftp.exe.
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 742 |
i dont understand what command uploads the file
|
|
|
|
Joined: Dec 2002
Posts: 1,922
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,922 |
put filename - enclose file in quotes if it contains spaces. For example, put "c:\program files\file.txt".
|
|
|
|
Joined: Jan 2003
Posts: 3,012
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 3,012 |
My mistake. I mean put, not stor. Stor is server side, rather than client.
-KingTomato
|
|
|
|
|