Jump to content

[Question] Send to > Ftp server? How to?


Recommended Posts


Posted (edited)

I don't know your batch file writing skills but reading this should give you a good starting point.

FTP Script

FTP.EXE XP built-in command is what will help you doing it.

Edited by jdoe
Posted

i can get it to connect and GET a file

How can i get it to send a file without editing the cmd?

I can do

Send xxxx.xxx

But thats static, how can i get the file name to be dynamic

Posted

i have to set a LOCAL dir for it to send to and then i think it upload to the ftp site. I tried to set that local to c:\ and got some odd error. im about to format so ill look at it more when im back

Posted

You will have to edit some of the VBS file to allow that file to be uploaded.

This color is where you have to add the file type

EG "log"

The array should look like this with what you want to upload

arASCII = Array("txt", "cgi", "pl", "htm", "html", "asp", "js", "vbs", "log")

' * * * * * * * * * * * * * * User Variables * * * * * * * * * * * * * *

' FTP address for the root of your web site:

' Example: "ftp.myISP.com" (check ISP help page for details) *

FTPaddr = "billsway.com"

' Local folder that equates to the root of your web site: *

BaseDir = "E:\BillsWay.com"

' FTP username for your site: *

UserName = "username"

' FTP password for your site: *

Password = "password"

' ---ADVANCED Setup Options--- *

' (If you don't know what ascii upload means, leave this alone!)

' Files to be uploaded in ASCII format: *

arASCII = Array("txt", "cgi", "pl", "htm", "html", "asp", "js", "vbs")

' Suppress Popup if upload succeeded (True or False, no quotes): *

ShowSuccess = False

' * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Posted (edited)

heres what i have

[\CODE]

' * * * * * * * * * * * * * * User Variables * * * * * * * * * * * * * *

' FTP address for the root of your web site:

' Example: "ftp.myISP.com" (check ISP help page for details) *

FTPaddr = "00000000"

' Local folder that equates to the root of your web site: *

BaseDir = "C:/Documents and Settings/Panda67/Desktop/"

' FTP username for your site: *

UserName = "00000000"

' FTP password for your site: *

Password = "000000000"

' ---ADVANCED Setup Options--- *

' (If you don't know what ascii upload means, leave this alone!)

' Files to be uploaded in ASCII format: *

arASCII = Array("rar","bmp","jpg","log","txt", "cgi", "pl", "htm", "html", "asp", "js", "vbs")

' Suppress Popup if upload succeeded (True or False, no quotes): *

ShowSuccess = False

' * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

[\/CODE]

And now im getting it must be in that DIR or a sub dir ;/

Edited by Panda67

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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