If the message is resulting from a command in the .prg file ( which it appears to be), then you can put the command SET SAFETY OFF on the line before the command that results in the message. Then issue the SET SAFETY ON command immediately after it.
More elegant programming calls for checking the SET status of SAFETY before changing it, but if you're getting that message from the .prg, it is clearly ON.
Otherwise, if the message is coming from the operating system itself, you might be better off to post the thread in the appropriate OS forum .
hth,
dennis