croezen
6th September 2006, 14:59
Hi,
I am trying to send a mail after the backup has finished and then i want to mail logfile of the backup.
so far nog problem, because i can do that with a simple commandline command.
BUT... the logfile-name changes everyday.
now i am trying to create a batchfile to find the correct filename and execute the command for that filename.
Hmm.. that's where the problems begin.
When i execute the command "dir /b /d /o-d" i get a list of names. I now need the first name in my command to send te mail.
some suggestions or maybe a better wat to accomplice this?
I am trying to send a mail after the backup has finished and then i want to mail logfile of the backup.
so far nog problem, because i can do that with a simple commandline command.
BUT... the logfile-name changes everyday.
now i am trying to create a batchfile to find the correct filename and execute the command for that filename.
Hmm.. that's where the problems begin.
When i execute the command "dir /b /d /o-d" i get a list of names. I now need the first name in my command to send te mail.
some suggestions or maybe a better wat to accomplice this?