So I just put it on the Task Scheduler to open this .txt every hour but it always ends up opening up the "Open with" menu and giving me "Acess denied" when I choose the program. Does anybody know of a better way of doing this? I'm on Windows 8.
Download "messagebox" or a similar program, designed to put messages on the screen, rather than trying to display a textfile. I use the program from http://www.optimumx.com/downloads.html -- I'm including the page link on the latter as it has several other useful utilities. This creates a windows-style message box, with lots of options -- i.e. you could set it to display a box with no controls (buttons) that will go away after x number of seconds.
The command is very simple, just put in the "action" section of your Windows Task Scheduler something like:
c:\<full path to MessageBox>\MessageBox.exe
and on the parameters field, you should put:
/C:Whatever caption (title) /M:this is the content /W:display for x seconds
If you use
messagebox /T:? it will show the different button options for /T: (OK, Cancel, no buttons, etc.)
- /C: specifies the caption to display in the title bar.
- /M: specifies the message to display to the user.
- /W: number of seconds to wait before timing out (optional).
- /T: specifies the type of icon and buttons (optional).
- /T:? Displays extended help for /T: options and return codes.
To display multiple lines, separate them with \n; to tab, use \t.
One warning, it doesn't work if the total command is more than 256 chars, but that usually will get you 4-5 lines of text displayed.
Here's an example with the results (which will stay on screen for 10 seconds):
E:\sources\MessageBox\MessageBox.exe /C:sample caption /M:this would be the \t\nmulti-line message\t /W:10 /T:35
You could try specifying the full command you are trying to run, e.g.:
with the full path to the file you want to open as the arguments.