View Full Version : zip to folder sync scripting with caveats
wayne613
25-May-2011, 03:38 PM
I'm attempting to solve another issue with some script scheduling in BC again. But I'm noticing a couple of minor snags.
1) compiled html help files (*.chm). I still need to sync the *.chm files, but do NOT want the contents of them extracted/expanded within the zip file.
2) It gives an error and hangs when the initial compare is done saying "Recv> 550 blah.zip: The directory name is invalid.", but if I click on it again, it will expand the zip comparing it's contents with the folder.
I'm attempting to sync/compare from a zip file on an ftp site to a specific folder. Is there some means to stop this specifically for the chm files in the zipped file?
Thanks!
Wayne
Aaron
26-May-2011, 08:26 AM
Hello Wayne,
1) If you go to the Tools menu -> Options, Folder Views, Archive associations, remove the *.chm from the Compiled HTML Help archive. This will treat .chm as files instead of folders. Alternatively, you could treat all archives as files using the Folder Compare's Session menu -> Session Settings, Handling tab, treat all archives as files option.
2) Is this error resolved if you fix your .chm association? Does this happen for all *.zip files on the server?
wayne613
26-May-2011, 08:55 AM
Hello Wayne,
1) If you go to the Tools menu -> Options, Folder Views, Archive associations, remove the *.chm from the Compiled HTML Help archive. This will treat .chm as files instead of folders. Alternatively, you could treat all archives as files using the Folder Compare's Session menu -> Session Settings, Handling tab, treat all archives as files option.
2) Is this error resolved if you fix your .chm association? Does this happen for all *.zip files on the server?
1. Can't actually delete the entry, but I blanked out the associated extension. That seems to do it. Thanks!
2. Nope. It still does this. Yes, it does this with another zip file as well. I am using the latest version of BC3.
I'm attempting to use the zip file as the "folder" to sync from, without actually extracting it first. It appears it is also not fully loading the file from the ftp site for some reason.
This is what the log file shows for it hanging on the initial comparison:
5/25/2011 5:33:25 PM Sent> USER anonymous
5/25/2011 5:33:25 PM Recv> 331 Anonymous access allowed, send identity (e-mail name) as password.
5/25/2011 5:33:25 PM Sent> PASS ********
5/25/2011 5:33:25 PM Recv> 230 Anonymous user logged in.
5/25/2011 5:33:25 PM Sent> FEAT
5/25/2011 5:33:25 PM Recv> 211-FEAT
5/25/2011 5:33:25 PM Recv> SIZE
5/25/2011 5:33:25 PM MDTM
5/25/2011 5:33:25 PM 211 END
5/25/2011 5:33:25 PM Sent> TYPE I
5/25/2011 5:33:25 PM Recv> 200 Type set to I.
5/25/2011 5:33:25 PM Sent> SYST
5/25/2011 5:33:25 PM Recv> 215 Windows_NT
5/25/2011 5:33:25 PM Sent> PWD
5/25/2011 5:33:25 PM Recv> 257 "/" is current directory.
5/25/2011 5:33:25 PM Sent> REST 1
5/25/2011 5:33:25 PM Recv> 350 Restarting at 1.
5/25/2011 5:33:25 PM Sent> REST 0
5/25/2011 5:33:25 PM Recv> 350 Restarting at 0.
5/25/2011 5:33:25 PM Sent> CWD prod.zip
5/25/2011 5:33:25 PM Recv> 550 prod.zip: The directory name is invalid.
5/25/2011 5:33:25 PM Sent> TYPE A
5/25/2011 5:33:25 PM Recv> 200 Type set to A.
5/25/2011 5:33:25 PM Sent> PASV
5/25/2011 5:33:25 PM Recv> 227 Entering Passive Mode (10,10,10,49,17,232).
5/25/2011 5:33:25 PM Sent> LIST
5/25/2011 5:33:25 PM Recv> 125 Data connection already open; Transfer starting.
5/25/2011 5:33:26 PM Recv> 226 Transfer complete.
5/25/2011 5:33:26 PM Sent> MDTM _Za04668
5/25/2011 5:33:26 PM Recv> 213 20100913231527
5/25/2011 5:33:26 PM Server timezone detected as UTC-04:00. Local is UTC-03:-59.
5/25/2011 5:33:26 PM Sent> TYPE I
5/25/2011 5:33:26 PM Recv> 200 Type set to I.
5/25/2011 5:33:26 PM Sent> PASV
5/25/2011 5:33:26 PM Recv> 227 Entering Passive Mode (10,10,10,49,17,233).
5/25/2011 5:33:26 PM Sent> RETR prod.zip
5/25/2011 5:33:26 PM Recv> 125 Data connection already open; Transfer starting.
Aaron
27-May-2011, 10:24 AM
Hello,
Thanks for the log. Unfortunately, the log is not quite matching up with what we would expect to see. Could you send us a video capture of the steps you are taking, from login to "clicking"? You can use a program like Jing to easily capture your screen. Please make sure to capture the full screen of BC3 (showing both the folder compare panes and log pane). You can email us this capture if you do not want to post it publicly at support@scootersoftware.com. Please include a link back to this forum post for reference in the email.
*Please note that Jing is not a Scooter Software product and is not supported by Scooter Software.
wayne613
31-May-2011, 03:53 PM
Actually, upon closer inspection, it's just taking forever as the transfer is being limited to 300KiB/s, so it is actually functioning if I let it go. I was simply initiating a new connection that didn't fully show the internal structure.
The error it gives just threw me further before:
5/31/2011 5:43:35 PM >> load "ftp://thisftp.site.com/prod.zip" "\\server01\push\app\folder"
5/31/2011 5:43:35 PM Stat> Connected.
5/31/2011 5:43:35 PM Recv> 220 Microsoft FTP Service
5/31/2011 5:43:35 PM Sent> HOST thisftp.site.com
5/31/2011 5:43:35 PM Recv> 500 'HOST thisftp.site.com': command not understood
5/31/2011 5:43:35 PM Sent> USER anonymous
Still not sure why it does that exactly, it doesn't do that for any subsequent ftp sessions in the script, but they all work. *shrug*
Craig
31-May-2011, 03:56 PM
The "HOST" command helps support virtual FTP servers (multiple FTP servers on the same IP, with different domain names). It doesn't hurt anything on servers that don't support it, but BC does detect that case and won't send it again for subsequent connections.
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.