Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to run a bin file from the command prompt to a local printer connected via usb. The line I am using is:

C:\Users\Administrator>rundll32 printui.dll,PrintUIEntry /b PAItx2002f /a %windi

The printer name is PAItx2002f. The file I am running is located C:\Users\Administrator\Desktop\F@ITX@_206.bin.

When I try to run this line, I get the error message "The arguments are invalid".

I am running Windows Server 2008 R2 Standard 64bit.

share|improve this question
up vote 1 down vote accepted

According to Microsoft's documentation, there shouldn't be a space between the /b and /a switches and their file names.

Also, unless the command is being run from a batch file, the %windir% environment variable will not be replaced with an actual directory.

share|improve this answer
I used the following line C:\Users\Administrator>rundll32 printui.dll,PrintUIEntry /bPAItx2002f/aC:\Users\Administrators\Desktop\F2ITX2_206.bin Still received same error. – dan_vitch Aug 31 '10 at 21:56
I also did it like this C:\Users\Administrator>rundll32 printui.dll,PrintUIEntry /bPAItx2002f/aDesktop\F2ITX2_206.bin – dan_vitch Aug 31 '10 at 22:02
@dan_vitch, try C:\Users\Administrator>rundll32 printui.dll,PrintUIEntry /bPAItx2002f /aC:\Users\Administrators\Desktop\F2ITX2_206.bin. You might also try /n instead of /b. – Mark Ransom Aug 31 '10 at 22:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .