ftp

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
razstec
Posts: 5
Joined: 09 Mar 2012 09:13

ftp

#1 Post by razstec » 09 Mar 2012 09:22

I guys, i would like to know if you guys can help with something.

I need a bat file to move folder with all files and sub folder to a specific place in another server thru ftp

I have something like this


Code: Select all

@echo off
  echo user colcy> ftpcmd.dat
  echo 123456>> ftpcmd.dat
  echo cd c:/files/upload/corc/>>ftpcmd.dat
  echo bin>> ftpcmd.dat
  echo put %1>> ftpcmd.dat
  echo quit>> ftpcmd.dat
  ftp -n -s:ftpcmd.dat ftp.server.net
del ftpcmd.dat


Do you think this will work? i cant test it right now so i would like to know if this is the right way or if theres a better way to do this?


One other question is there any way to lock a bat file and hide the password when running it?

thanks for all

abc0502
Posts: 1007
Joined: 26 Oct 2011 22:38
Location: Egypt

Re: ftp

#2 Post by abc0502 » 10 Mar 2012 02:25

I don't Know much about ftp but you can try this it has an upload and download batch using ftp
http://www.dostips.com/DtTipsFtpBatchScript.php

razstec
Posts: 5
Joined: 09 Mar 2012 09:13

Re: ftp

#3 Post by razstec » 12 Mar 2012 03:03

that where i got my script. :)

Post Reply