Re: scheduled printing of a text file using batch files



this would be a scheduled task question rather than a printing question. I
have never used the schtasks command. Unsure which newsgroup that would go
to.

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/search/?adv=1

This posting is provided "AS IS" with no warranties, and confers no rights.

"Gadgetman" <Gadgetman.3ajnzd@xxxxxxxxxxxxx> wrote in message
news:Gadgetman.3ajnzd@xxxxxxxxxxxxxxxx

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



.



Relevant Pages

  • scheduled printing of a text file using batch files
    ... I've been attempting to automate the process of printing a text file ... using a batch file or schtasks in the command line, ... Printing from the command line using notepad works fine! ... when attempting to use the "schtasks" for automating this process. ...
    (microsoft.public.windowsxp.print_fax)
  • [SLE] N-up printing in KDE with Cups, OpenOffice, etc (was Re: [SLE] pdf booklet)
    ... > to buy adobe acrobat? ... CUPS N-Up printing, or specifically 4-up printing selected from the ... Click the "Add filter" button - it looks like a funnel. ... Command"), and then click the "Edit Command" button on the "Command edit ...
    (SuSE)
  • RE: Problems Printing After XP Upgrade from 98SE
    ... In addition to not printing, ... all of the jobs from the queue and print a test page from XP, ... > Use the net.exe command to establish a persistent connection. ... > network printer path when the LPT port exists on the computer as a physical ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Get RAW Bitmap Data from a file
    ... Posiflex uses the Epson command set). ... I am using code from this MS Knowledgebase that allows printing RAW ... the Epson command to turn on Define Graphic Download). ... Any other format, even DONTCARE fails with ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Printing on a thermal printer
    ... I use a lot of Thermal Printers for labelling applications and have had the ... spooler API's and allows me to send command directly to the printer in its ... Simply set the printer name to the name of any installed windows ... actually control the printing of pages as the driver is being bypassed, ...
    (microsoft.public.dotnet.framework)