Jump to content

Multiple Commands In Dos


Recommended Posts

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)

Link to comment
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.
Link to comment
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.
Link to comment
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?

Link to comment
Share on other sites

  • Moderators

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?

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.

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...