Is it possible to use a Network drive or server UNC path for datadir?

at my.ini I tried using:

#Path to the database root
datadir=s:/MySQL/Data/

or
#Path to the database root
datadir=\\serve r\MySQL\data\


But is not working.
When starting the service I receive:
Could not start the MySQL service on Local Computer
Error 1067: The process terminated...