>>>lcFile is incomplete. It either has to start with '\\" for UNC or with drive letter 'X:\'
>>>
>>>>lcFile = '\POS\PDA\PDADATA_20100513_123401.TXT'
>>>>
>>>>lnLength = 16001
>>>>
>>>>lcNABP = '7871801'
>>>>
>>>>Thanks!
>>
>>I changed the code to put the SYS(5) to the front of lcfile -> 'C:\POS\PDA\PDADATA_20100513_123401.TXT''
>>
>>Same ole result again... same error.... (I double checked and made sure that clsEncryption.dll was registered on the PC).
>
>Try passing the name with double quotes since it has spaces in it, e.g.
>
>lcFile = ["C:\POS\PDA\PDADATA_20100513_123401.TXT"]
Tried changing code to this to avoid any spaces.. (this did not have any... the 'POS' got changed by UT to be 'Point of Sale'
lcEncryptedFile = ' " ' + ALLTRIM(lcFile) + ' " '
lcEncryptNABP = ' " ' + ALLTRIM(lcNABP) + ' " '
loclsEncrypt = CREATEOBJECT("clsEncryption.clsEncrypt")
lcUnencryptedStringofData = loclsEncrypt.DecryptDataFromFile(lcEncryptedFile, lnLength, lcEncryptNABP)
Same result....
Tommy Tillman A+ NetWork+ MCP