Dirk, I see in the ‘Task Manager’
that ‘cmd.exe’ is running, so it does appear that the .BAT is
called. I cannot see the command window on the server,
probably because SA is running as a service (yes, it has interact with the
desktop enabled). I’ll run SA as an interactive
application next to see what happens. The .BAT file only has 5 lines, and none
appear to execute. Date /t >>
recycle.log Time /t >>
recycle.log Recycle.vbs Echo ---- >>
recycle.log Pause Thanks, -bill From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of The PAUSE never gets called, hence I
believe it’s something to do with permissions on the .BAT file, yes? SA and the .BAT file are on the same
machine. -bill From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dirk Bulinckx put a PAUSE command in the BAT file that
way when it's started you'll see the output. Dirk. From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of I’m having difficulty executing a
command when an alert is raised. It’s a very simple .BAT file, but
it does not appear to be called. I put in the full path: C:\recycle.bat I put the following in the file
“date /t >> log.txt” and nothing happens. The SA log records the alert, but
doesn’t show the .BAT file being called. Am I missing something simple? Is it
permissions? Thanks, -bill |
- RE: [SA-list] execute command on Alert Bill Sweetman
- RE: [SA-list] execute command on Alert Bill Sweetman
- RE: [SA-list] execute command on Alert Bill Sweetman