Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Problem with the , in a rundll32 printui.dll,PrintUIEntry

$
0
0
Hello all,

I'm doing a soft to install all the printers of my computer park by choosing them with checkbox.

My script works well but I'm running a little issue.

To install a printer, I have this line (in a function):

[ autoit ]      
RunWait(@ComSpec & " /c rundll32 printui.dll,PrintUIEntry /if /b " & $PortImp & ' /f "\\gre168\DRIVERS\Imprimantes\' & @OSArch & "\" & $PortImp & $DrivInfX86 & '" /r ' & $PortImp & ' /m "' & $DrivNom & '" /z')

The fact is that the "," caracter of printui.dll,PrintUIEntry is detected as a separator of the RunWait function.
If I let this line like this it's Ok it works, but if I add a "," after, it proposes me the [SHOW_FLAG] option, not the [WORKING DIR].
Thereby, I can't add a @SW_HIDE to hide the command prompt at each printer install.

Do you have an idea on how to solve that? maybe an alternate caracter?

Thanks!

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>