Question : Add printer batch network share with space

I am trying to add a printer on network share through a batch file.  I do not have a problem adding the printer if there is not space in the file name but, I do have a problem adding the printer if there is a space in the file name.  I have included quotes on the path already and it simply opens up a new window with the name that I have in quotes here is an example of my code.

1:
2:
3:
4:
5:
6:
@echo off

net use \\PrintServer
start \\PrintServer\Office 1
pause

Answer : Add printer batch network share with space

Use instead

rundll32.exe printui.dll,PrintUIEntry /in /n\\PrintServer\Office 1

Random Solutions  
 
programming4us programming4us