Forum Index \ DriveHQ Customer Support Forum \
Read/Reply : 54744/7
  • mcfly007
  • (4 posts)

Ok i know how to connect to the ftp via.

ftp

open ftp.drivehq.com 21

username

password

 

then how do i upload?

everytime i use put filepath\text.txt

it doesn't do anything? what am i doing wrong? any ideas?


9/2/2013 7:06:11 PM

  • DriveHQSupport
  • (651 posts)
Subject: Re:upload files using batch

Please provide the detailed information about the problem. Do you see any error message?

If not, I guess it is the very famous FTP problem - you need to use Passive FTP instead of Active FTP. Most routers block Active FTP. Passive FTP is rarely blocked.

You need to use a router that supports Active FTP, or you can use a different FTP client. Unfortunately, Microsoft command-line FTP client does not support Passive FTP. You need to use a GNU version FTP client, or any GUI-based FTP client, such as FileZilla.

Alternatively, you can use DriveHQ FileManager for automatic folder synchronization, or use our WebDAV drive mapping service, then use DOS command to copy files directly.


Reply
9/3/2013 11:13:14 AM

  • mcfly007
  • (4 posts)
Subject: Re:upload files using batch

@echo off
echo user mcfly007> ftpcmd.dat
echo password>> ftpcmd.dat
echo bin>> ftpcmd.dat
echo put %1>> ftpcmd.dat
echo quit>> ftpcmd.dat
ftp -n -s:ftpcmd.dat ftp.drivehq.com 21
mput C:\users\%username%\Desktop\text.rar
pause
del ftpcmd.dat
 

Transfers files to and from a computer running an FTP server service
(sometimes called a daemon). Ftp can be used interactively.

FTP [-v] [-d] [-i] [-n] [-g] [-s:filename] [-a] [-w:windowsize] [-A] [host

  -v             Suppresses display of remote server responses.
  -n             Suppresses auto-login upon initial connection.
  -i             Turns off interactive prompting during multiple file
                 transfers.
  -d             Enables debugging.
  -g             Disables filename globbing (see GLOB command).
  -s:filename    Specifies a text file containing FTP commands; the
                 commands will automatically run after FTP starts.
  -a             Use any local interface when binding data connection.
  -A             login as anonymous.
  -w:buffersize  Overrides the default transfer buffer size of 4096.
  host           Specifies the host name or IP address of the remote
                 host to connect to.

Notes:
  - mget and mput commands take y/n/q for yes/no/quit.
  - Use Control-C to abort commands.
'mput' is not recognized as an internal or external command,
operable program or batch file.
Press any key to continue . . .

 


Reply
9/3/2013 11:30:39 AM

  • mcfly007
  • (4 posts)
Subject: Re:upload files using batch

@echo off
cls
ftp
open ftp.drivehq.com 21
mcfly007
password
cd wwwhome
mput "C:\Documents and Settings\%username%\Desktop\,\test1\little devil v1.0\archive.rar"
y

i figured out the code now i just need to figure out how to make this a batch file.


Reply
9/3/2013 2:46:51 PM

  • mcfly007
  • (4 posts)
Subject: Re:upload files using batch

in regular ftp mode i just type this.
how do i automate this to upload acrhive.rar to wwwhome? 
  ftp
    open ftp.drivehq.com 21
mcfly007
helloworld
     cd wwwhome
     bin
     hash
     put "archive.rar"
     bye


Reply
9/3/2013 4:45:15 PM

  • DAPHNE MUHLBEIER
  • (1 posts)
Subject: Re:upload files using batch

When I log on to Drive HQ, I no longer receive the option of Batch Upload when uploading files to drive hq, meaning each file has to be uploaded individually which is much more time consuming than the batch upload previously available.  The tab that said "Batch Upload" now says "Web Upload".  Do you know why, and how I can get "batch upload" back?


Reply
4/26/2017 3:07:13 PM

  • DriveHQSupport_
  • (651 posts)
Subject: Re:upload files using batch

 Thanks for reaching out to us Daphne, 

It seems that there might be some confusion with the basic web based upload under the My Storage area, as we have recently made some updates with the interface here. Rest assured, batch upload is still absolutely possible. Previously, we had two options for basic upload and batch upload. Compared to what you currently see within the upload option, which is a basic 'web upload' option. The web upload is essentially the same as the batch upload; this will allos you to click on 'add files', and then select ALL of the files within your machine that you want to upload to DriveHQ.

There is definitely no requirement to upload these one at a time. If you feel that you are seeing something contrary to what was explained above, please send us the steps to duplicate what you are experiencing. You can also feel free to reach out to us at support@drivehq.com if you would like to discuss this a bit more comprehensively. 

 

Best,
DriveHQ Support
www.DriveHQ.com
 


Reply
4/26/2017 3:17:03 PM

  • DriveHQSupport_
  • (651 posts)
Subject: Re:upload files using batch

DriveHQ has released a command-line FTP client: DriveHQ Command FTP. It is optimized for batch FTP operations and FTP scripting. For more detailed info, please visit:

https://www.drivehq.com/DriveHQ-KB/ftp/Command-line_FTP_Scripting.aspx

 

DriveHQ Command FTP is designed to replace the default Windows FTP client. It has the following advantages:

  • 1. It supports both active and passive mode FTP.
  • 2. It supports FTP over SSL (FTPS & FTPES) and SFTP.
  • 3. It supports automatic resuming/retrying.
  • 4. It supports data compression and encryption.
  • 5. It supports downloading/uploading folders.
  • 6. It supports mirroring/synchronizing folders.
  • 7. It supports event logging for auditing and trouble shooting.
  • 8. It can send email reports after an operation.
  • 9. It supports more powerful FTP scripts.

Reply
6/17/2019 5:50:59 PM

Quickly Reply

Please logon and reply, Not DriveHQ Member?


Leading Cloud Surveillance service

Leading Enterprise Cloud IT Service Since 2003