Scheduling task using AT not working
Posted on 2002-05-23
I'm trying to schedule a task using AT. The command is as follows:
at 16:00 cmd /c \"reg query "HKCU\SOFTWARE\Microsoft\Internet Explorer\T
ypedURLs" >> log.txt\"
If I just type the reg query command on the command line, it pipes the output fine to the log.txt file. But as soon as I put it in an AT command, all I get in the log.txt file is:
"The system was unable to find the specified registry key."
I next tried creating a batch file with the reg query command in it and used the at command as follows:
at 16:00 cmd /c c:\temp\log.bat
That once again gave the same output in the log.txt file. If I run the log.bat from the command line, it gives me the output I'm looking for in log.txt.
I tried adding some pause commands to the log.bat file when the AT utility ran it to see what was happening and nothing appeared wrong. So I'm not sure what is wrong.
Any ideas? Oh, and I don't want to use scheduled tasks either. Prefer to use AT.