lestersal
2003-12-05 03:28:02 UTC
When I try to run the following command in Visual Basic it works:
#1. Call Shell("ftp -i ftpservername", vbNormalFocus)
When I try it with the -s switch, however, it does not:
#2. Call Shell("ftp -i -s:unixcommands.bat ftpservername", vbNormalFocus
The problem is the colon after the -s in line #2. DOS will accept the line
if typed in manually, but it does not seem to
recognize it programatically.
Is there some way I can use escape characters or something similar to get
DOS to accept line #2 programatically?
Thanks,
Alistair Saldanha
#1. Call Shell("ftp -i ftpservername", vbNormalFocus)
When I try it with the -s switch, however, it does not:
#2. Call Shell("ftp -i -s:unixcommands.bat ftpservername", vbNormalFocus
The problem is the colon after the -s in line #2. DOS will accept the line
if typed in manually, but it does not seem to
recognize it programatically.
Is there some way I can use escape characters or something similar to get
DOS to accept line #2 programatically?
Thanks,
Alistair Saldanha