MIKEYDSL Posted June 28, 2006 Posted June 28, 2006 I am currently using this script to install a new TCP IP printer port on my Windows XP Pro computers. It is working fine with no errors.We recently had a new person working for us that has x64 on their laptop, and I was wondering if anyone can help with the scrip that I am using.Current script (Windows XP)Set objWMIService = GetObject("winmgmts:")Set objNewPort = objWMIService.Get _ ("Win32_TCPIPPrinterPort").SpawnInstance_objNewPort.Name = "BW_10.0.0.240"objNewPort.Protocol = 1objNewPort.HostAddress = "10.0.0.240"objNewPort.PortNumber = "9100"objNewPort.SNMPEnabled = FalseobjNewPort.Put_While running it on the x64 machine, it bombs out with Error on line 10 chacter.......Does not complete the script.Does anyone know what I have to do to get this to run.Also the bat file that I have calls a bunch of Command line printer files Here it is cscript.exe BW_PrinterPort.vbsmd %windir%\inf\AP410Ncopy *.* %windir%\inf\AP410NRUNDLL32 PRINTUI.DLL,PrintUIEntry /if /b "Ricoh AP410N Black and White" /f %windir%\inf\AP410N\oemsetup.inf /r "BW_10.0.0.240" /m "RICOH Aficio AP410 PCL 6" exitNothing is running on Windows x64. Thanks in advance !!
The-VOICE Posted June 28, 2006 Posted June 28, 2006 (edited) My understanding is that VBScript isn't supported on Windows x64 Edition. What little information I could find on the subject when I was in a similar situation a few months ago was that VBScript was considered a 'legacy' technology by Microsoft.I was able to accomplish what I needed by rewriting my scripts in AutoIt.Forgive my ignorance, but do x86 printer drivers work in Windows x64?Oh, and welcome to MSFN! Edited June 28, 2006 by The-VOICE
MIKEYDSL Posted June 29, 2006 Author Posted June 29, 2006 Hey thanks for the quick answer. I really dont know how to use autoIT, so I guess that I am really at a loss. That **** microsoft !!!x86 Drivers do not work in x64. You have to have the x64 Drivers.Thanks Again !!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now