There are two kinds of variables in a batch files
The first is environment variables:
You can set them with commands like
SET VAR1=ftp10.netscape.com
and print them with stuff like
ECHO %VAR1%
Now, to send these variables to a script file, you'd do something like
ECHO %VAR1% >> scriptfile.txt
The other kind is command line variables (parameters)
You can set an environment variable to equal the first command line
variable using
SET VAR1=%1
Then you can use it like above.