Sign in to follow this  
Followers 0
frontmill

Multiple Commands In Dos

7 posts in this topic

hi all... i'm working on a chatlog history backupper and now i want to upload a zip file (the logs) to my ftp (by using windowsbuilt-in ftp client). So i tried this with a batch:

@echo off
ftp
open revealgames.net
frontmill@revealgames.net
password
put c:\logs.zip
quit
exit

but that doesn't work, if i dont do the echo off my dos keeps sending the ftp command over and over without a result. If i do use the @echo off dos starts but nothing happens.

anyone knows a solution? (preferably one without using a batch file, but if you know a way to fix it using the batch you'll make me very happy as well)

Share this post


Link to post
Share on other sites



hi all... i'm working on a chatlog history backupper and now i want to upload a zip file (the logs) to my ftp (by using windowsbuilt-in ftp client). So i tried this with a batch:

@echo off
ftp
open revealgames.net
frontmill@revealgames.net
password
put c:\logs.zip
quit
exit

but that doesn't work, if i dont do the echo off my dos keeps sending the ftp command over and over without a result. If i do use the @echo off dos starts but nothing happens.

anyone knows a solution? (preferably one without using a batch file, but if you know a way to fix it using the batch you'll make me very happy as well)

"@echo off" doesn't affect the way that the batch file is working, meaning it doesn't make it do anything differently except it doesn't send output to the screen. it's still just doing the same thing of sending the ftp command over and over without a result.

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

hi all... i'm working on a chatlog history backupper and now i want to upload a zip file (the logs) to my ftp (by using windowsbuilt-in ftp client). So i tried this with a batch:

@echo off
ftp
open revealgames.net
frontmill@revealgames.net
password
put c:\logs.zip
quit
exit

but that doesn't work, if i dont do the echo off my dos keeps sending the ftp command over and over without a result. If i do use the @echo off dos starts but nothing happens.

anyone knows a solution? (preferably one without using a batch file, but if you know a way to fix it using the batch you'll make me very happy as well)

You can have AutoIt create a batch file (FileOpen), run it and then delete it when you are finished with it.

Share this post


Link to post
Share on other sites

You can have AutoIt create a batch file (FileOpen), run it and then delete it when you are finished with it.

or just use ftp.au3 to upload the file without batch file...

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

You can have AutoIt create a batch file (FileOpen), run it and then delete it when you are finished with it.

that wouldn't make any diffrence.. it would still be the same bat file.. right?

and where can i find more info about ftp.au3?

Share this post


Link to post
Share on other sites

and where can i find more info about ftp.au3?

:) Theres this thing called "Search" at the top of your page here, type in "ftp.au3" in the search menu (maybe scripts and scraps specific) might work?

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

yeah i did that lol.. this is my script nowm with the records i always use when i go to my ftp with IE...

$server = 'ftp://frontmill@revealgames.net'
$username = 'frontmill@revealgames.net'
$pass = 'geheim2'

$Open = _FTPOpen('MyFTP2')
$Conn = _FTPConnect($Open, $server, $username, $pass)
$Ftpp = _FtpPutFile($Conn, 'C:\logs.zip', 'logs.zip')
$Ftpc = _FTPClose($Open)
MsgBox(0,"1",$Open & " " & $Conn & " " & $Ftpp & " " & $Ftpc)
Edited by frontmill

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0