October 6th, 2005, 11:09 PM
Comments In A FTP Script
Is it possible to add comments to a FTP script? I have a rather complicated FTP script and would like to break it up with some comments to make it a bit more readable should the need arise to go in and modify it later.
October 6th, 2005, 11:31 PM
What do you mean?
Is it simply a list of FTP commands to run as a batch job, for example? Or is it a shell script that runs when you login to your FTP server? Or what exactly are you reffering to?
October 6th, 2005, 11:47 PM
Batch File Contents Used To Launch The Whole Process:
Originally Posted by codergeek42
script.txt File Contents:
I want to put comments into the script.txt file. The script file that I will be using has a lot more FTP commands in it than this one. Hence the desire for some comments. I'm starting to doubt that this is even possible...
October 15th, 2005, 10:50 AM
Add Comments To A FTP File (Figured It Out)
From doing some additional Internet sleuthing, I found a way of adding the comments that I wanted to my FTP script. If you type "!REM" in your script followed by a comment, you can have meaningful comments inserted into a FTP script. Though "!REM" is not a true FTP command, it still serves the purpose. Here is an example:
!REM This is a comment
That's all you have to do, and it works without flaw.
October 18th, 2006, 10:13 AM
use "!#" in a Unix environment
If you are in a Unix environment "!REM" will not work.
You will need to use "!#" as in ...
ftp> !# This is a comment
ftp> open 999.999.999.999