Proceed as pi.
Installing Samba
sudo apt-get update sudo apt-get install samba samba-common-bin
Creating a directory to share
sudo mkdir -m 1777 /data
Edit the Samba Configuration, smb.conf
sudo nano /etc/samba/smb.conf
Add this in the last line:
[data] comment = Data share path = /data browseable = yes read only = no
Reboot
sudo reboot
Creating samba users
sudo smbpasswd -a root sudo smbpasswd -a pi
Windows network drive address
\\192.168.0.31\data