I am trying to write to a file that I install with a vbscript custom action.
I followed the How do I write text into a file? entry in the help.
When I set the path to the file in the vbscript manually, ie:
snapintxt = "C:\Program Files (x86)\Telcordia\Granite Inventory\Inventory Admin Client\snapinlist.txt"
All is well and everything runs.
When I take the value passed in through CustomActionData , I get the error:
Custom action makeSnapInList.vbs script error -2146828236, Microsoft VBScript runtime error: Bad file name or number Line 23, Column 1
This is driving me nuts, I print out the 2 values side by side and they are identical, there must be extra characters on
the passed in string, Trim doesn't fix it. Is there any other way? Any help would be appreciated.
Thanks!
FOLLOW US
Get the latest news in Application Packaging