Hi,
I have written a script to upgrade firmware on a device. The script works as expected. However, the firmware is approx 27mb and the statements after the put command executes before the file is successfully transfered to the device. is there any way i can halt the script until the file transfer is complete.
Thanks In Advance
<--------------- Script Start ------------------------->
NAME=HostIP
Set sh=wscript.createobject("wscript.shell")
sh.run("ftp " + name)
wscript.sleep(1000)
sh.sendkeys (CR)
wscript.sleep(1000)
sh.sendkeys (CR)
wscript.sleep(1000)
sh.sendkeys "bin" & (CR)
sh.sendkeys "put C:\FWCONFIG\Firmware\9XXX.rfu" & (CR)
wscript.sleep(1000)
sh.sendkeys "bye" & (CR)
<-------------- Script End ----------------------------->
I have written a script to upgrade firmware on a device. The script works as expected. However, the firmware is approx 27mb and the statements after the put command executes before the file is successfully transfered to the device. is there any way i can halt the script until the file transfer is complete.
Thanks In Advance
<--------------- Script Start ------------------------->
NAME=HostIP
Set sh=wscript.createobject("wscript.shell")
sh.run("ftp " + name)
wscript.sleep(1000)
sh.sendkeys (CR)
wscript.sleep(1000)
sh.sendkeys (CR)
wscript.sleep(1000)
sh.sendkeys "bin" & (CR)
sh.sendkeys "put C:\FWCONFIG\Firmware\9XXX.rfu" & (CR)
wscript.sleep(1000)
sh.sendkeys "bye" & (CR)
<-------------- Script End ----------------------------->