1
0
Problem:
I have a .bat to send me an email with an attachment. When I execute it in cmd or in Windows Explorer, it works and I receive my email within 3-5 sec. I scheduled a task for its execution daily, but when the trigger occurs, the only thing I can see is a black window popping up called tasksend or something like that and that's it. When I check the task scheduler for my task, it is tagged as executed successfully. No error messages. Yet, I don't have my Email.
System Configuration:
E528-2821 Windows 7 32-bit
What I tried:
It suggested to:
- check the tick box [Run with highest Privileges]
- adding the scheduled task in the Startup folder
- check the tick box [Run only when user is logged on]
- setting the Start In path manually (under the Action properties)
- In addition to 4, using a path that did not contain spaces
None of them worked.
It suggested to change something about the Local Group Policy. However the Local Group Policy Editor feature is not included in the Windows 7 Starter, Home Basic, and Home Premium editions.
This is an alternative to Windows Task Scheduler I downloaded, but it gives me the same problem.
So? What was it that went wrong? – klokop – 2015-07-24T08:25:20.120
Looks like a duplicate of .bat runs from command line but not when scheduled; unfortunately, that hasn’t been answered after almost two months.
– Scott – 2013-08-03T20:53:21.607its a batch, it shows running somewhat, and probably does not have permission, or is being blocked from the action. A possible way to disagnose how it runs different when run from the scheduler, you could toss some error control and logging into the batch. simple things like appended echos creating a log.txt. and having IF error stuff put in. The person who designed the bat, could assist in providing user notifications, instead of just a blinking away window. – Psycogeek – 2013-08-03T22:58:28.773
Yes good suggestion. I had done the log.txt and figured out what went wrong. Thanks you. – Khalil – 2013-08-03T23:18:29.077