1.

Solve : Batch File Upload to HTTP/FTP Server?

Answer»

While I've found a few sources that say uploading with a batch file to an FTP Server is much easier than an HTTP server, however I would prefer an HTTP Server. Information on both endeavors would be appreciated as I haven't completely made my decision.

I'd like to create a script that would create a file and then upload it to the server.

I've already done the creation part, but what kind of script could I use to upload the file to a specified server. :-?You could use the inbilt FTP command. Open a command prompt and enter ftp followed by enter. Now type help followed by enter. A list of switches etc will be listed.
Thanks, Blackdated ANYBODY else have any HTTP information? 8-)What exactly do you mean by an HTTP upload? Do you have an example of what you're TRYING to achieve?Say I had a batch file with

Code: [Select]Ipconfig > %windir%\Info.txt
Hostname >> %windir%\Info.txt
%OS% >> %windir%\Info.txt
I want a way to upload the Info.txt to the root of my HTTP Server (HTDOCS).

Is it possible to do this? :-?Certainly..... Via FTP!

ftp USER:[emailprotected] ADDRESS:PORT
put PATH\myfile.ext
quit

Or something similar.
Quote

Certainly..... Via FTP!

ftp USER:[emailprotected] ADDRESS:PORT
put PATH\myfile.ext
quit

Or something similar.
I didn't know you could FTP into a HTTP server. News to me. :-/

Although my server is acting up lately. :( Got it working for a while with the ports forwarded and everything, but now the only way I can ACCESS it is with http://localhost:8000 not the external IP 70.36.xx.xx:8000 that is forwarded to 192.168.1.101 (My server's address.) Or with http://192.168.1.101:8000.

EDIT 1: Why won't my smileys show up?


I tried to ftp into my Apache HTTP server, and it couldn't connect. :-/

Did I not understand you correctly? :-?As you suspect, HTTP and FTP are two completely different services. The trick is that they can both point to the same folder/directory. Is this your own web server you're running? If so, you'll also need to run a (secure) FTP service to achieve a satisfactory result.

What web server are you using? IIS has a built in FTP component.Yes, this is my own web server, and I'm running Apache 2.0.55. Would this Cerebus FTP server suffice, or is it something different entirely? :-? http://www.cerberusftp.com/
Yes, that would do it, although I'd be inclined to use one of the open source offerings rather than a commercial product. (The open source movement excels in this area.) What platform are you using for your server (Windows/Linux)?I'm using Windows. Would I have to run the FTP Server on a different port? :-?The default port for HTTP is 80, and the default port for FTP is 20, so yes, they would be on different ports.


Discussion

No Comment Found