rrhandle8
asked on
VBS script FTPs only part of the file's content
I have a list of files to be FTPed from one server to another. This process had been working. Recently, only part of each file was successfully sent. The files are all 20-30kb. When sent to the 2nd server, only 3-6kb of each file shows up.
The script loops through the list of files and uses this code to FTP them:
I tried to slow the process down by adding a msgbox and it worked:
Next, I tried the sleep command to delay it by 20seconds. It did not work. Only parts of the files were transfered.
The script loops through the list of files and uses this code to FTP them:
Set objshell _ Createobject("wscript.shell")
objshell.run "ncftpput.exe (server stuff and file names)
set objshell = nothing
I tried to slow the process down by adding a msgbox and it worked:
Set objshell _ Createobject("wscript.shell")
objshell.run "ncftpput.exe (server stuff and file names)
set objshell = nothing
msgbox "Press ENTER to continue"
Next, I tried the sleep command to delay it by 20seconds. It did not work. Only parts of the files were transfered.
Set objshell _ Createobject("wscript.shell")
objshell.run "ncftpput.exe (server stuff and file names)
wscript.sleep 20000
set objshell = nothing
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
ASKER