VB Script Issue in Loop

I am trying to create a HASH value for a list of files in a Directory and upload the list of files and corresponding Hash value to a table in SQL Server. Everything seems to work fine, except the VB script only works on the first and last iterations of the loop. Has anyone encountered this? What am I doing wrong?


  • So, I think I figured it out. All but two files in the folder have a space in the file name and they are being parsed as separate parameters. I have tried adding quotes, but it is not solving the issue. Outside of replacing spaces with another character and then replacing that character in VBScript I can't think of another solution outside of working with the sender of the file to remove the spaces.

Sign In or Register to comment.