PC Review


Reply
Thread Tools Rate Thread

Calling Caspol from batch file

 
 
Robert Scheer
Guest
Posts: n/a
 
      4th Oct 2006
Hi.

I wrote a single batch file that runs Caspol to configure my users
workstations. The first line removes a group from the security policy,
but if that group does not exists, I receive an error and a list with
the syntax to be used with Caspol. That's the line:

@%WINDIR%\Microsoft.NET\Framework\v1.1.4322\CasPol.exe -q -rg NEWGROUP

How can I turn off the error messages or how can I detect if a group
exists, before remove it?

Thanks,
Robert Scheer

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
calling multiple batch files from within a batch file yawnmoth Windows XP General 3 26th May 2008 06:47 PM
Calling CASPOL from within Installshield 12. eddieb7 Microsoft Dot NET Framework 3 25th Aug 2007 03:37 PM
Running Caspol from a batch file eddieb7 Microsoft Dot NET Framework 2 17th Aug 2007 09:45 AM
Calling Batch within a Batch file Bobby Stiklus Microsoft Windows 2000 Developer 1 27th Apr 2004 06:40 PM
Calling Batch within a Batch File ChuckR Microsoft Windows 2000 Developer 0 22nd Apr 2004 02:33 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:13 PM.