Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: create a popup reminder using batch file

21 Jul 2010   #11
kiwichick

windows 7 Home Premium
 
 

Hi Greg S, I'm so stoked you got it to work! Unfortunately it's still not working for me. Can you confirm I have the code correct:

setalarm.bat:

@ECHO OFF
SETLOCAL
SET _t=%1
SET _d=%2 %3 %4 %5
SET _x=%_d: =%
IF NOT DEFINED _t (SET /P _t=Enter the time: )
IF NOT DEFINED _x (SET /p _d=Enter the description: )
IF NOT DEFINED _d (SET /p _d=Enter the description: )
ECHO. reminder at %_t% to %_d%
at \\%COMPUTERNAME% %_t% /interactive cmd /c C:\windows\showalarm "%_d%"

showalarm.bat:

@echo off
cls
echo.
echo.
echo %1
echo.
echo.
pause

They are both in C:\Windows. I can still run setalarm.bat and enter the details but nothing happens when it reaches the set time although in Task Scheduler it says it's running.

You didn't mention whether you had also changed "configure for" when you got it to work. I have tried with and without changing it but it makes no difference. But even if that worked it would defeat the purpose because it would still involve more than just running the batch file.

After running setalarm I can briefly see a warning before the cmd window closes. After recording it to video I can read it:

create a popup reminder using batch file-21-07-2010_192047.jpg

Any further thoughts would be gratefully accepted.




My System SpecsSystem Spec
.
21 Jul 2010   #12
Greg S

Windows 7 Professional 32-bit (6.1, Build 7600)
 
 

Quote   Quote: Originally Posted by kiwichick View Post
Hi Greg S, I'm so stoked you got it to work! Unfortunately it's still not working for me. Can you confirm I have the code correct:

setalarm.bat:

@ECHO OFF
SETLOCAL
SET _t=%1
SET _d=%2 %3 %4 %5
SET _x=%_d: =%
IF NOT DEFINED _t (SET /P _t=Enter the time: )
IF NOT DEFINED _x (SET /p _d=Enter the description: )
IF NOT DEFINED _d (SET /p _d=Enter the description: )
ECHO. reminder at %_t% to %_d%
at \\%COMPUTERNAME% %_t% /interactive cmd /c C:\windows\showalarm "%_d%"

showalarm.bat:

@echo off
cls
echo.
echo.
echo %1
echo.
echo.
pause

They are both in C:\Windows. I can still run setalarm.bat and enter the details but nothing happens when it reaches the set time although in Task Scheduler it says it's running.

You didn't mention whether you had also changed "configure for" when you got it to work. I have tried with and without changing it but it makes no difference. But even if that worked it would defeat the purpose because it would still involve more than just running the batch file.

After running setalarm I can briefly see a warning before the cmd window closes. After recording it to video I can read it:

Attachment 86531

Any further thoughts would be gratefully accepted.
Yes it's correct. It seems that you have found out what I had typed in my last reply but I deleted it at the last moment. I have a feeling that each time you run setalarm.bat, it will create a new task in scheduler which will cause you more extra steps each time. Getting it to work for me went like this, launch setalarm.bat, after that go into task scheduler and change the Configure for: to Win 7 and I also had to add me as a User instead of the default System. The adding of User is just above the Configure for:
My System SpecsSystem Spec
21 Jul 2010   #13
kiwichick

windows 7 Home Premium
 
 

Thanks yet again Greg S, I don't understand what you mean about adding you as a user. Can you please explain how you did that? I see the Change User button but when I open it I don't see how to add me. But as I said before, if I have to change settings and things every time I run the setalarm.bat, it defeats the purpose of having it. I may as well just use Task Scheduler itself.
My System SpecsSystem Spec
.

21 Jul 2010   #14
Greg S

Windows 7 Professional 32-bit (6.1, Build 7600)
 
 

Quote   Quote: Originally Posted by kiwichick View Post
Thanks yet again Greg S, I don't understand what you mean about adding you as a user. Can you please explain how you did that? I see the Change User button but when I open it I don't see how to add me. But as I said before, if I have to change settings and things every time I run the setalarm.bat, it defeats the purpose of having it. I may as well just use Task Scheduler itself.
After clicking the button, type Users inside that box and on the right, select Check Names. Your user name should pop into view, click it once and select OK. That's from memory so post back if it doesn't work for you and I can give more specifics and screenshots
My System SpecsSystem Spec
21 Jul 2010   #15
kiwichick

windows 7 Home Premium
 
 

I'm getting really bummed now I'm sure I've done everything as you instructed but it still won't work. Here are screenshots of At1 in Task Scheduler.

create a popup reminder using batch file-at1-general.png

create a popup reminder using batch file-at1-actions.png


My System SpecsSystem Spec
21 Jul 2010   #16
Greg S

Windows 7 Professional 32-bit (6.1, Build 7600)
 
 

Quote   Quote: Originally Posted by kiwichick View Post
I'm getting really bummed now I'm sure I've done everything as you instructed but it still won't work. Here are screenshots of At1 in Task Scheduler.

Attachment 86712

Attachment 86711
If you have done the two steps mentioned in my last reply, right click At1 and select End. Open task manager and make sure cmd is not running, if it is, end the process. Back in task scheduler, select Refresh, next right click At1 again but this time select Run. This is to see if it will run when invoked. If it will run by doing that, then it will run if you adjust the time for say one minute later. If you haven't done the two steps mentioned earlier, let me know.
My System SpecsSystem Spec
21 Jul 2010   #17
kiwichick

windows 7 Home Premium
 
 

well the screenshots were supposed to be for you to confirm I had done those steps but never mind. I'm over it. As I've said before, if it requires all this mucking around to make it work, it defeats the purpose. I'll look for some kind of third-party software that doesn't require too much input to set a reminder. Thanks for all your help Greg S. You've been absolutely amazing.
My System SpecsSystem Spec
12 Mar 2015   #18
adam1

Windows 7 Professional (64-bit)
 
 

The last post here was 1695 days ago, but I was having the same problem and came up with the following solution:

It's not a batch, but a vbs. To use it, copy the text between the dotted lines and paste it into notepad. Then save the file as "reminder.vbs" (don't forget to switch the file type to "all files"). Then, double click the "reminder.vbs" script and try it out. Note: you will have to enter the time in minutes, so if you want a reminder set for 6:00am, and it's 4:00am when you create the reminder, enter the time as "120".

------------------------------------------------
'ask for info to be reminded about
strUserIn = InputBox("Remind me to: ")
'and in how many minutes
intUserIn = InputBox("In X minutes. X =")
'confirmation
wscript.echo "Ok, I'll remind you to " & strUserIn & " in " & intUserIn & " minutes."
'wait the specified number of minutes
wscript.sleep (intUserIn*60000)

'play a sound
strSoundFile = "C:\Windows\Media\Speech On.wav"
Set objShell = CreateObject("Wscript.Shell")
strCommand = "wmplayer.exe /play /close " & chr(34) & strSoundFile & chr(34)
objShell.Run strCommand, 0, false
'display reminder
MsgBox "Don't forget to " & strUserIn & "!"

'script by adam1
------------------------------------------------------

I hope this helps someone out there.
It's just a quick, simple way to set reminders for yourself.
My System SpecsSystem Spec
Reply

 create a popup reminder using batch file




Thread Tools




Similar help and support threads
Thread Forum
A Batch file to bypass adminstrator popup [Prefetch folder] ~
Hello again guys! As I mentioned in the thread title, I want to make a .bat file that can delete each file and folder inside C:\Windows\Prefetch ~ I actually made one but it can't delete any thing in Prefetch folder until I open the folder, seeing that annoying popup below and click continue,...
General Discussion
Need help to create batch file for IE with following settings
I am new here and wanted some help. I wanted to know if I can do some internet explorer setting using batch file. Settings would be like this A - Home page - about:blank A.1 - Browsing history - marked on delete browsing history on exit. A.1.1 - Settings - enables radio button (Every time...
Chillout Room
how to create a reminder popup
I would like to create and schedule a reminder popup to connect my external drive to my laptop for backup. How do do it?
General Discussion
Is it possible to create a windows batch file to do this?
I generally run windows aero theme across all four monitors which i am happy with. However when i run a music app called cubase 5, i hear all sorts of squeaks and glitches when i simply move my cursor around the screen. The problem resolves itself when i switch to the standard windows classic...
General Discussion
Create a batch file that mimics Alt+Tab key presses
What I want to do is a batch file or program so that when you open it, it mimics key presses Alt+Tab. Or at least tell me where's the Flip2D program location I need it because I want my Synaptics touchpad to open it (this program) when a I press the upper left corner. Thanks!
Software
How to create a batch file that will move files based on the file type
How to create a batch file that will move files based on the file type? My Requirement : I need a batch file to copy all .doc files in all my HardDisk to a removable disk say (Z: drive) . Can anyone make it possible using a batch file?Please...Its urgent...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 00:00.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App