Error setting temp macro in vbscript
Hi,
I am using this in my vbscript to set a temporary macro BatFile.
Application.Macros(vbldTemporary).Add "BatFile", vbld_TempMacroObj("ADO_RS").Fields("TLBIMPFile")
MsgBox "%BatFile%"
And then in the next step using the run program to run a bat file as follows:
%DOSCMD% %DestinationDir%\%BatFile%
But this gives me an error.
What am I doing wrong?
Thanks.
|