What is in the upl.txt?
And is it vbs - not a batchfile I presume. I belive I have been presented to
something line the case as suggested by me.
I am surpised that the 'echo open server.somewhere.com' should give me a
connection tho the ftp-server.
/PER
"Bertel Brander" <bertel@post4.tele.dk> skrev i en meddelelse
news:4298661b$0$310$edfadb0f@dread11.news.tele.dk...
> Per Münster wrote:
>> Hello,
>>
>> I thought I knew how to logon to a FTP-server - this way in the script:
>>
>> ftp server
>> username
>> password
>> put file.txt
>> bye
>> exit
>>
>> But it does not work. How do I then make this? OS is WXP
>
> @echo off
> echo open server.somewhere.com>%temp%\upl.txt
> echo username>>%temp%\upl.txt
> echo password>>%temp%\upl.txt
>
> echo put file.txt>>%temp%\upl.txt
>
> echo quit>>%temp%\upl.txt
>
> ftp -s:%temp%\upl.txt
> del %temp%\upl.txt
>
> --
> Absolutely not the best homepage on the net:
>
http://home20.inet.tele.dk/midgaard
> But it's mine - Bertel