Search found 34 matches

by eahm
19 Feb 2015 14:58
Forum: DOS Batch Forum
Topic: mailsend script for FreeFileSync
Replies: 72
Views: 56167

Re: mailsend script for FreeFileSync

Squashman wrote:We don't come here to get paid. We come here for the knowledge and hopefully we are teaching others at the same time.

I do that to, always did BUT if I knew you and saw you at the bar I would have paid you a beer, this would be the same :)

Your call guys, thanks again.
by eahm
19 Feb 2015 13:43
Forum: DOS Batch Forum
Topic: mailsend script for FreeFileSync
Replies: 72
Views: 56167

Re: mailsend script for FreeFileSync

foxidrive wrote:Read the post above yours.

You're right sorry, I replied too many times too fast. Please consider adding 1 hour time limit for editing in the forum?
by eahm
19 Feb 2015 13:31
Forum: DOS Batch Forum
Topic: mailsend script for FreeFileSync
Replies: 72
Views: 56167

Re: mailsend script for FreeFileSync

This is beautiful, both scripts working perfectly: mailsend.bat (Logs folder) : @echo off timeout /t 3 set subject=[Failed] The search terms were not found for /f "delims=" %%x in ('dir "C:\FFS\Logs\" /od /b') do set recent=%%x findstr /i "successfully" "C:\FFS\Log...
by eahm
19 Feb 2015 13:09
Forum: DOS Batch Forum
Topic: mailsend script for FreeFileSync
Replies: 72
Views: 56167

Re: mailsend script for FreeFileSync

I see quotes and two spaces but I can't just damn program to save my life, let's try this. Should I replace

Code: Select all

%first_line%
with

Code: Select all

"%first_line%"

Are the spaces necessary?
by eahm
19 Feb 2015 12:42
Forum: DOS Batch Forum
Topic: mailsend script for FreeFileSync
Replies: 72
Views: 56167

Re: mailsend script for FreeFileSync

I am really confused. I kind of understand now that the script stops at the first character of the second line and it's the date? Is there a way to fix that, sorry if you already posted it.
by eahm
19 Feb 2015 12:23
Forum: DOS Batch Forum
Topic: mailsend script for FreeFileSync
Replies: 72
Views: 56167

Re: mailsend script for FreeFileSync

I will try this one ASAP: @echo off timeout /t 5 set subject=[Failed] The search terms were not found ( set /p ignore= set /p first_line= )<"C:\FFS\LastSyncs.log" echo %first_line%|findstr /i "successfully" >nul && set subject=[Success] Synchronization completed successfu...
by eahm
19 Feb 2015 12:15
Forum: DOS Batch Forum
Topic: mailsend script for FreeFileSync
Replies: 72
Views: 56167

Re: mailsend script for FreeFileSync

Sorry I only edit when I say things not relevant to what we are doing and because English is my 3rd language (edit here once). I have no idea what Squashman did with that reply... Last test I did was with the version ShadowThief posted and LastSyncs.log already present in the folder. I can try again...
by eahm
19 Feb 2015 09:54
Forum: DOS Batch Forum
Topic: mailsend script for FreeFileSync
Replies: 72
Views: 56167

Re: mailsend script for FreeFileSync

I am sure I already did but I will try again with his exact version.

Exact version:

Code: Select all

C:\FFS>mailalert.bat
'2' is not recognized as an internal or external command,
operable program or batch file.

C:\FFS>
by eahm
19 Feb 2015 09:40
Forum: DOS Batch Forum
Topic: mailsend script for FreeFileSync
Replies: 72
Views: 56167

Re: mailsend script for FreeFileSync

C:\FFS>( set /p ignore= set /p first_line= ) 0<"C:\FFS\LastSyncs.log" C:\FFS>echo | 2/19/2015 - [Data1]-Utils_[iTM64GBPat]-Utils: Synchronization co mpleted successfully | findstr /i "successfully nothing" 1>nul && set subjec t=[Success] Synchronization completed success...
by eahm
19 Feb 2015 08:57
Forum: DOS Batch Forum
Topic: mailsend script for FreeFileSync
Replies: 72
Views: 56167

Re: mailsend script for FreeFileSync

Something is not working, even if I add pause at the end I don't see the bat starting at all.
by eahm
18 Feb 2015 21:00
Forum: DOS Batch Forum
Topic: mailsend script for FreeFileSync
Replies: 72
Views: 56167

Re: mailsend script for FreeFileSync

eahm wrote:Sorry it's the second line not the first. Is there a way to make it work with that? Thanks.

Code: Select all

_____________________________________________________________________
|2/14/2015 - [Data1]-Utils_[iTM64GBPat]-Utils: Nothing to synchronize

Anyone guys? Thanks again.
by eahm
14 Feb 2015 16:38
Forum: DOS Batch Forum
Topic: mailsend script for FreeFileSync
Replies: 72
Views: 56167

Re: mailsend script for FreeFileSync

Sorry it's the second line not the first. Is there a way to make it work with that? Thanks.

Code: Select all

_____________________________________________________________________
|2/14/2015 - [Data1]-Utils_[iTM64GBPat]-Utils: Nothing to synchronize
by eahm
14 Feb 2015 14:58
Forum: DOS Batch Forum
Topic: mailsend script for FreeFileSync
Replies: 72
Views: 56167

Re: mailsend script for FreeFileSync

This one still works perfectly, I made few changes earlier (/c: etc.) and modified others now (one line for successfully and nothing) again: @echo off set subject=[Failed] The search terms were not found for /f "delims=" %%x in ('dir "C:\FFS\Logs\" /od /b') do set recent=%%x find...
by eahm
14 Feb 2015 10:54
Forum: DOS Batch Forum
Topic: mailsend script for FreeFileSync
Replies: 72
Views: 56167

Re: mailsend script for FreeFileSync

ShadowThief, yes. An s was missing from the last script (LastSync s .log, sorry 1:30am I was too tired but the previous script stopped working after the latest ~1GB Microsoft update. edit: And, this new script is NOT going to work properly, the file LastSyncs.log is not being replaced every time but...
by eahm
14 Feb 2015 01:53
Forum: DOS Batch Forum
Topic: mailsend script for FreeFileSync
Replies: 72
Views: 56167

Re: mailsend script for FreeFileSync

ShadowThief, thank you. I am sure the new script works perfectly but why am I still getting this: "FINDSTR: Cannot open C:\FFS\LastSync.log" ? New script, just for verification: @echo off timeout /t 5 set subject=[Failed] The search terms were not found findstr /i "successfully" ...