First thing I wanted to ask is what OS you were running but now that I see C:\Windows, I assume you have W2K3. I think you don't have a syntax problem, you have a permission problem. If you leave the "Run As" set to default, it doesn't have permission to write into the root of C:. To test, simply change your script to write to c:\windows\temp\alert.txt instead of c:\alert.txt. It should work. BTW "default" appears to be "Network Service" in this context. Now the Great Karnack will make a prediction.... Soon you will post a question "How do I keep this da*n thing running?" Raff -----Original Message----- From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx]On Behalf Of Adam.Baum@xxxxxxxxxxxxxx Sent: Monday, December 06, 2004 2:58 PM To: thin@xxxxxxxxxxxxx Subject: [THIN] Re: OT: Batch file from Performance Monitor How about quotes...ala "c:\windows\system32\cmd /c c:\windows\alert.bat" adam "Matt Kosht" <matt.kosht@arete To: <thin@xxxxxxxxxxxxx> ch-is.com> cc: Sent by: Subject: [THIN] Re: OT: Batch file from Performance Monitor thin-bounce@freel ists.org 12/06/2004 12:10 PM Please respond to thin It won't seem to let me enter more than one argument i.e. no parameters so it chokes on the /c. I tried c:\windows\system32\cmd /c c:\windows\alert.bat Got "The specified program or command file does not exist"" shortened to c:\windows\system32\cmd /c same error shortened to c:\windows\system32\cmd which it accepted. >>> Adam.Baum@xxxxxxxxxxxxxx 12/6/2004 1:18:35 PM >>> did you try adding a cmd /c to the command line that calls the batch file? adam "Matt Kosht" <matt.kosht@arete To: <thin@xxxxxxxxxxxxx> ch-is.com> cc: Sent by: Subject: [THIN] OT: Batch file from Performance Monitor thin-bounce@freel ists.org 12/06/2004 10:53 AM Please respond to thin OK I suffering some brain-lock here. Solicitiing advice. Seems very simple but I am missing something here not obvious to me. I have an Alert setup for a counter (say % CPU). I select the option to log to Application Event log which works great. I also check the "Run this program" and put the path to a batch file which echoes %1 to a text file (see below). This works fine on the command line. I have the command line arguments set to "single argument string". Nothing happens. I have tried putting just notepad.exe in there and nothing. The App event shows up so I know the alert has been triggered. I am stumped. ***Alert.bat @echo off echo %1 >> c:\alert.txt ******************************************************** This Weeks Sponsor Activaeon.com Reduce licensing costs with activAeon XA and get one month completely free. http://www.activaeon.com ********************************************************** Useful Thin Client Computing Links are available at: http://thin.net/links.cfm ThinWiki community http://www.thinwiki.com *********************************************************** For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link: http://thin.net/citrixlist.cfm ******************************************************** This Weeks Sponsor Activaeon.com Reduce licensing costs with activAeon XA and get one month completely free. http://www.activaeon.com ********************************************************** Useful Thin Client Computing Links are available at: http://thin.net/links.cfm ThinWiki community http://www.thinwiki.com *********************************************************** For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link: http://thin.net/citrixlist.cfm ******************************************************** This Weeks Sponsor Activaeon.com Reduce licensing costs with activAeon XA and get one month completely free. http://www.activaeon.com ********************************************************** Useful Thin Client Computing Links are available at: http://thin.net/links.cfm ThinWiki community http://www.thinwiki.com *********************************************************** For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link: http://thin.net/citrixlist.cfm ******************************************************** This Weeks Sponsor Activaeon.com Reduce licensing costs with activAeon XA and get one month completely free. http://www.activaeon.com ********************************************************** Useful Thin Client Computing Links are available at: http://thin.net/links.cfm ThinWiki community http://www.thinwiki.com *********************************************************** For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link: http://thin.net/citrixlist.cfm ******************************************************** This Weeks Sponsor Activaeon.com Reduce licensing costs with activAeon XA and get one month completely free. http://www.activaeon.com ********************************************************** Useful Thin Client Computing Links are available at: http://thin.net/links.cfm ThinWiki community http://www.thinwiki.com *********************************************************** For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link: http://thin.net/citrixlist.cfm