G
Guest
Presently I am creating a text file with a .cmd. Inside is a I am using a
receive command to pull from the mainframe.
.....
Open gsPath & "SecureImport.cmd" For Output As #1 ' Open file.
Print #1, "Receive " & sTemp & " <my mainframe file name>"
......
I call the cmd file.
......
Shell(<path and cmd filename>, vbNormalFocus)
......
This all works fine. But I would like to put code in to make sure the
receive worked properly. I was told I could use a return code when using the
shell command. I get several different return values from the cmd whether it
ends properly or not.
Can I check some kind of value whether a return code or see some kind of a
return value from the Receive command?
****************************************************
If this is not possible. Some DOS commands work in VBA. Can I code say the
receive command with in the module or a get command?
receive command to pull from the mainframe.
.....
Open gsPath & "SecureImport.cmd" For Output As #1 ' Open file.
Print #1, "Receive " & sTemp & " <my mainframe file name>"
......
I call the cmd file.
......
Shell(<path and cmd filename>, vbNormalFocus)
......
This all works fine. But I would like to put code in to make sure the
receive worked properly. I was told I could use a return code when using the
shell command. I get several different return values from the cmd whether it
ends properly or not.
Can I check some kind of value whether a return code or see some kind of a
return value from the Receive command?
****************************************************
If this is not possible. Some DOS commands work in VBA. Can I code say the
receive command with in the module or a get command?