Teaser Posted September 22, 2010 Posted September 22, 2010 Hi All, Basically I need to compare two variables using the file name to ensure what file was sent out is what was received back using JAVASCRIPT. var A - will have a file name such as 0000462 J&J MSD CONS PHARM 07 2010.xls var B - will be the same file name Windows automatically makes var B appear as 0000462 J&J MSD CONS PHARM 07 2010~1.xls Thus the comparison does not work. Any ideas would be much appreciated. I was looking at the contains method but cannot find anything. The file name above is just an example and the number of characters prior to the ".xls" will vary a lot. Thanks, T
powdarrmonkey Posted September 22, 2010 Posted September 22, 2010 It's difficult to suggest a solution without understanding the purpose. Why are you making this comparison, and why in Javascript?
Teaser Posted September 22, 2010 Author Posted September 22, 2010 We are using a BPM tool that only supports JAVASCRIPT or maybe VBSCRIPT. The reason for the comparison is that the file being sent out will be manipulated externally and once it has been returned, a user must attach the file to this BPM process. To negate the possibility of the user attaching the wrong file to the 'folder', this check is critical. Hope that helps.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now