I'm trying to make a script that every time the computer restarts it copies all files from a directory and sends it to my email (yandex), but I'm having a hard time sending it to the email.

:: variables
SET odrive=%odrive:~0,2%
set backupcmd=xcopy /s /c /d /e /h /i /r /y /g
echo off
%backupcmd% "\\DESKTOP-JJ3NGNE\Users\nexxus" "%drive%\files\"
@echo off 

This is what I did, it copies the files from "\DESKTOP-JJ3NGNE\Users\nexxus" and sends it to the pendrive, but I wanted it sent to my email, I tried to do it in several ways ... but I'm complicating it in part of being the whole directory, folders and subfolders, if anyone can help me thank you

0 Answers