mIRC Home    About    Download    Register    News    Help

Print Thread
#228196 11/12/10 09:26 PM
Joined: Sep 2010
Posts: 9
B
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
B
Joined: Sep 2010
Posts: 9
ok , i tried this at other place , but no luck , so here i go ...

i have one script that generates a txt file and save it to my disk ( that part it's already finished and working ), then i need the simplest ( if possible ) thing to add to my script to upload that file to a ftp server

so i have my file , is always the same ( name , location on the disk ) , my ftp server , my password and the ftp folder where i want to upload the file

i already tried all this with no luck
http://www.hawkee.com/phpBB2/viewtopic.php?t=22123

all i need is to upload one file , no need dialogs to choose files , or other routines to check if the server or the file exists , or anything to entry the data everytime , all will the same same all the time


thanks.
Carlos.






Joined: Nov 2009
Posts: 295
P
Fjord artisan
Offline
Fjord artisan
P
Joined: Nov 2009
Posts: 295
The easiest way is to not actually use mirc to upload the file. I found a very simple method that uses the built in ftp.exe that windows has.

Code:
;mirc code
run -n ftp.exe -s:D:\Programs\mIRC7\ftp.do

;contents of ftp.do
open ftp.address.com
user
pass
cd public_html/webpages
put "D:\Programs\mIRC7\text.txt"
bye


The ftp.do file is a list of commands that ftp.exe will follow. The path of the ftp.do file and the file to upload have to be hard coded. Ask if you have any questions


http://scripting.pball.win
My personal site with some scripts I've released.

Link Copied to Clipboard