Jump to content

Recommended Posts

Posted

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 = 1

objNewPort.HostAddress = "10.0.0.240"

objNewPort.PortNumber = "9100"

objNewPort.SNMPEnabled = False

objNewPort.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.vbs

md %windir%\inf\AP410N

copy *.* %windir%\inf\AP410N

RUNDLL32 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"

exit

Nothing is running on Windows x64.

Thanks in advance !!


Posted (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 by The-VOICE
Posted

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 !!

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...