All;
Trying to run fieldcrew1.vbs from kix32;
$scrip = Fieldcrew1.vbs
if not exist('c:\documents and settings\@userid\$scrip')
copy @ldrive + '\$scrip' 'c:\documents and settings\@userid\'
SHELL "wscript 'c:\documents and settings\@userid\' + $scrip"
endif
Also tried;
$scrip = Fieldcrew1.vbs
SHELL "wscript '@ldrive' + $scrip"
endif
I know fieldcrew1.vbs works, simply adding a printer , but ... I don't get the printer from kix32.
list fieldcrew1.vbs
Set WSHNetwork = CreateObject("WScript.Network")
WSHNetwork.AddWindowsPrinterConnection "\\pserver1\6thFloorFieldCrew1"
end list
I'd sorely luv to convert this to a kix script. I located and d/l'ed the UDF vbs2kix , but kix32 vbs2kix fieldcrew1.vbs fieldcrew1.kix returns;
ERROR : IDispatch pointers not allowed in expressions!
Script: fieldcrew1.vbs
Line : 7
Help?
atb
Edited by DemoDog (2009-08-20 09:23 PM)
Edit Reason: updated question
_________________________
If Stupidity got us into this mess, then why can't it get us out?
Will Rogers