This is a tough one to describe as lots of facets. Basically, I have a VB Script integrated into a batch script via:
<!-- : Begin Batch Script
{Batch here}
WSF script ----------->
<package>
<job id="CleanString">
<script language="VBScript">
{VBScript Here}
</script>
</job>
</package>
This is called via (an example) batch line, thus:
call cscript //nologo "%appPath%\CPWizBiz.bat?.wsf" //job:IniCommand /cmd:ReadValue /section:"1" /file:"C:\CPWizBiz.ini"
I don't think the code is the problem. It has been working for 2 months now without hitch. No direct changes to the relevant code.
However, I've started getting a mysterious error:
C:\Scripts\CPWizBiz.bat?.wsf(1663, 15) Windows Script Host: Expecting a valid name
Occurs at all points throughout my code. Nothing to do with the %appPath% variable, paths or anything else. I can't help but think it's something to do with a WSH setting or something. Unfortunately, I know very little about WSH.
Also, I don't think those numbers were there in the console output before "(1663, 15)".
I'm praying someone can help, as this is a devastating error and one I feel quite powerless to do anything about. :(
I appreciate a lot more relevant info might be needed... Thanks