You may need an extra set of %%, because this often get stripped out when
running batch files.
The simplest thing to do is build an actual batch file and get it working,
then paste that in. (And Be sure to up your version number.)
--
Craig Wilson - MCNE, MCSE, CCNA
Novell Knowledge Partner
Novell does not officially monitor these forums.
Suggestions/Opinions/Statements made by me are solely my own.
These thoughts may not be shared by either Novell or any rational human.
"Ragnart" <Ragnart@no-mx.forums.novell.com> wrote in message
news:Ragnart.410wgp@no-mx.forums.novell.com...
>
> Hi,
>
> Im trying to run the following line thruogh a zen object:
>
> wmic printer where "PortName LIKE 'ipp%%'" delete
>
> This is to delete all iprint printers. The script works if I run it
> locally, but once i use a zen object to distribute the script it fails.
>
> The problem is that the %% is left out, and the line that runs is:
> wmic printer where "PortName LIKE 'ipp'" delete
> And no printers are deleted.
>
> Any idea on how to get the script to run properly?
>
> I'm running 7.0.1.4
>
> Best regards
>
>
> --
> Ragnart
> ------------------------------------------------------------------------
> Ragnart's Profile: http://forums.novell.com/members/ragnart.html
> View this thread: Problem with .bat script through zenworks
>