Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

joecw

Used this resource for cmd https://winscp.net/eng/docs/guide_ftp_script_to_sftp#commandline

Replaced
cmd /c ftp -s:""" & SomePath & """

with
cmd /c winscp.com /script=""" & SomePath & """

which should work!
joecw

Modifying VBScript to Send Files to Mainframe Securely using FTPS (Explicit)

This VBscript currently uses built-in Windows FTP but needs to use a secure data transfer instead to send files to the Mainframe. From what I understand so far, WinSCP will let us do this with as little modification as possible, so I opted for this. We simply want to get it to work with as little effort as possible, and hope that it goes away someday.

I want to know how to modify this strCommand section in this line: cmd /c ftp -s:
iFTPResult = goWSHShell.Run("cmd /c ftp -s:""" & sBinWIPPath & """ >> """ & sBinFolder & "\" & sFTPLogFile & """", 0, True)


And then their is also a text file that will need to be changed as well:
open foo.intranet.bar

FTPUSERIDMAIN
FTPPASSWORDMAIN
prompt
binary
quote site recfm=u
quote site lrecl=0
quote site blksize=27998
quote site cy pri=250 sec=100
put %zipfilefile% '%zipdataset%'
ascii
quote site recfm=fb
quote site lrecl=80
put %transactfile% '%transactdataset%'
bye


I have an idea of what to do, but I am actually pretty new to administration dev side and this team so I don't want to spend too long on this part of the project: PLEASE HELP!