'''Upload_Web_page
myPath = "c:\results\upcode" 'path where batch file is saved
WebFileName = "myfile"
''''''''write script.dat and upload.dat file
Set fs = CreateObject("Scripting.FileSystemObject")
Set A = fs.CreateTextFile(myPath & "\script.dat", True)
A.writeline "username" 'username
A.writeline "password" 'username
A.writeline "lcd " & myPath 'file location
A.writeline "cd www"
A.writeline "put " & WebFileName & ".pdf" 'file name
A.writeline "quit"
A.Close
Set fs = CreateObject("Scripting.FileSystemObject")
Set A = fs.CreateTextFile(myPath & "\upload.bat", True)
A.writeline "ftp -i -s:" & myPath & "\script.dat ftp.mysite.com"
A.Close
dRetVal = Shell(myPath & "\upload.bat", 0)
''''''''''end upload.bat file