LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 02-Nov-2009, 07:20 AM
Craig Wilson
NNTP User
 
Posts: n/a
Default Re: Problem with .bat script through zenworks

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
>



Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 01:41 AM.


© 2007 Novell, Inc. All Rights Reserved.

Search Engine Friendly URLs by vBSEO 3.3.0 RC2