• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Help me write a program?

NuclearFusi0n

Diamond Member
I need a program that searches a given path for a given file, and automagically FTPs that file(s) to a given ftp. the program should have no output (or a dialog box that says hello world!) and should take no input. file name, path, and ftp information should be hardcoded.

help this is for windows...and i have no idea how to script windows. is there any command line ftp client?

p.s this is not for a class..so any language is acceptable. a kick in the right direction would be nice.
 
C:\Documents and Settings\Rob>ftp -?

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.
Hope that helps...I dunno if it will, but that's the ftp commandline from Windows.

Rob
 
Easy enough. Just create a file that contains the ftp commands. e.g.:

o hostname
username
password
cd /whatever/directory
put nameoflocalfile

Save that as transfer.ftp or something, then simply execute the ftp command as follows:

ftp -s:transfer.ftp
 
Perl should be able to handle this fairly well, I'd assume. I know there are a ton of other options (VBScript, etc.) but I'd probably do it in perl if I had to.
 
Originally posted by: Entity
Perl should be able to handle this fairly well, I'd assume. I know there are a ton of other options (VBScript, etc.) but I'd probably do it in perl if I had to.
Perl is not native to win32. too bad, it's very powerful.
 
Originally posted by: Descartes
Originally posted by: NuclearFusi0n
Originally posted by: iwearnosox
Subseven? 😀
shut up before you get this locked. I'd use subseven but my virus scanner will bork it, and this needs to be totally non-interactive.

Did you see my reply above?
yes. i'm playing around with the files now, i'll reboot to windows for testing later. thanks.
 
Originally posted by: NuclearFusi0n
Originally posted by: Entity
Perl should be able to handle this fairly well, I'd assume. I know there are a ton of other options (VBScript, etc.) but I'd probably do it in perl if I had to.
Perl is not native to win32. too bad, it's very powerful.

Well, you can download it for windows and it works great. I can tell you how to get this done in perl on windows in about 1 minute, but not if you're not going to install perl.
 
Originally posted by: NuclearFusi0n
Originally posted by: Entity
Perl should be able to handle this fairly well, I'd assume. I know there are a ton of other options (VBScript, etc.) but I'd probably do it in perl if I had to.
Perl is not native to win32. too bad, it's very powerful.

just download it assmunch
 
Originally posted by: notfred
Originally posted by: NuclearFusi0n
Originally posted by: Entity
Perl should be able to handle this fairly well, I'd assume. I know there are a ton of other options (VBScript, etc.) but I'd probably do it in perl if I had to.
Perl is not native to win32. too bad, it's very powerful.

Well, you can download it for windows and it works great. I can tell you how to get this done in perl on windows in about 1 minute, but not if you're not going to install perl.
cant on this box. 🙁
 
Back
Top