I've been attempting to automate the process of printing a text file
using a batch file or schtasks in the command line, in order to provide
a "warm up" method (test page) for our networked Xerox printer.
The printer has issues with time outs, after 240 minutes of non use. It
then takes 30 seconds to 5 minutes (depending upon the settings in
place) for the printer to warm up, before it will print. I can
obviously use the software or hardware process to do such, but I have
better things to do with my time.
Printing from the command line using notepad works fine!
(Code String Example

notepad /p desktop\blank.txt
I am stumped on using the proper syntax method for the command line
when attempting to use the "schtasks" for automating this process.
(Code String EXAMPLE

schtasks /create /s /tn "Printer Warm Up" /tr notepad /p
desktop\blank.txt /sc daily /st 10:00:00 /ed 06/06/2008
I receive the following error:
ERROR: Invalid syntax. Value expected for '/s'
I've tried many different ways of moving the "/s" around to make this
work, but it always complains about the string in place.
Other ERROR: Cannot specify password without specifying the user name.
There should be an easier way to specify the local system, without user
name and password?
ANY IDEAS?
(Besides dumping the Xerox printer...LOL)
--
Gadgetman
------------------------------------------------------------------------
Gadgetman's Profile:
http://forums.techarena.in/member.php?userid=51066
View this thread:
http://forums.techarena.in/showthread.php?t=981521
http://forums.techarena.in