Ok I know this is probably not a good idea but lets entertain the thought and possibilities.
This is xmail 1.20 on win32 system and what I want to do is be able to email to the server and have a code in the body of the email and when it reaches xmail, xmail will look at it and check to see who the email is from and if its a valid user it will look for the code in the email to proceed to a batch file that reboots the machine. If the code is incorrect, it just discards it. Im not the best at batchfiles but I get by :) So far I came up with this but I need help. The server name is server1 This file will be named email-reboot.cmd and placed in D:\Xmail\xmail_filters Not sure if the REM statement is needed or not. @Echo off set xmailfile=%~1 REM if "%xmailfile:~0,4%"=="\\?\ <file://%3F/>" set xmailfile=%xmailfile:~4% if not"%~2"=="[EMAIL PROTECTED]" exit 0 copy %xmailfile% D:\Xmail\xmail_filters\tmp D: cd \ cd Xmail\xmail_filters\tmp (need something here to look for code) del *.server1 /Q endlocal exit 4 Ideas? - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]