K
K
kondrash0552015-10-07 14:45:13
cmd/bat
kondrash055, 2015-10-07 14:45:13

How to send messages via msg from 1s?

Good day!
There is a mail.cmd file with the content

@echo off
@msg "Администратор" "%~1"
@msg "user2" "%~1"
@msg "и тд пользователи" "%~1"

It is accessed by the server part 1c through StartApplication and passes the parameters.
The message reaches users only if you give the admin on the server to the user from whom the 1s service is started. In the tcp-rdp security settings, I gave the user the rights "login, message, connect", disabled the admin and the messages stopped reaching. Where else could I forget to give rights?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kondrash055, 2016-01-25
@kondrash055

1c sends the message text with a parameter to the *.bat file
for /f "delims=" %%i in (C:\user.txt) do msg %%i "%~1"
in the user.txt file is a list of users to receive messages like
"user1"
"user2"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question