Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Can I turn this into a batch file or macro?

Reply
Thread Tools Display Modes

Can I turn this into a batch file or macro?

 
 
Paul
Guest
Posts: n/a

 
      11-10-2007
I would like to turn the following instructions (for deleting the current
print job) into a batch file, so I don't have to do all this while my laser
is printing up page after page. Is this possible?

To clean out the queue without a reboot:
-Click Start
-Click Run.
-Type cmd
-Click OK.
-A command prompt window will open (looks like a DOS window).
-Type "net stop spooler" (without the quotes).
-Press the Enter key.
-You will see a message after a few seconds that the spooler service stopped
successfully.
-Navigate to and delete all files in the folder
C:\Windows\System32\Spool\Printers. (note that your path, depending on your
XP install, may be C:\WINNT\System32\Spool\Printers). I don't know the path
in Vista, but it's probably the same. These file(s) you're deleting are the
hung print job.
-Type "net start spooler" (without the quotes).
-Press the Enter key.
-After you see a message that the spooler service started successfully, type
"exit" (without the quotes).
-Press the enter key (this is the best way to gracefully close the command
prompt window).
 
Reply With Quote
 
 
 
 
jim
Guest
Posts: n/a

 
      11-10-2007
Check out AutoIT. It's free and can automate most anything on a Windows PC.

http://www.autoitscript.com/autoit3/

jim

"Paul" <> wrote in message
news:CB267C32-4994-4717-8231-...
>I would like to turn the following instructions (for deleting the current
> print job) into a batch file, so I don't have to do all this while my
> laser
> is printing up page after page. Is this possible?
>
> To clean out the queue without a reboot:
> -Click Start
> -Click Run.
> -Type cmd
> -Click OK.
> -A command prompt window will open (looks like a DOS window).
> -Type "net stop spooler" (without the quotes).
> -Press the Enter key.
> -You will see a message after a few seconds that the spooler service
> stopped
> successfully.
> -Navigate to and delete all files in the folder
> C:\Windows\System32\Spool\Printers. (note that your path, depending on
> your
> XP install, may be C:\WINNT\System32\Spool\Printers). I don't know the
> path
> in Vista, but it's probably the same. These file(s) you're deleting are
> the
> hung print job.
> -Type "net start spooler" (without the quotes).
> -Press the Enter key.
> -After you see a message that the spooler service started successfully,
> type
> "exit" (without the quotes).
> -Press the enter key (this is the best way to gracefully close the command
> prompt window).



 
Reply With Quote
 
Mick Murphy
Guest
Posts: n/a

 
      11-10-2007
I don't reboot when I delete print jobs.

I right-click on the taskbar icon, and work from that.!

"Paul" wrote:

> I would like to turn the following instructions (for deleting the current
> print job) into a batch file, so I don't have to do all this while my laser
> is printing up page after page. Is this possible?
>
> To clean out the queue without a reboot:
> -Click Start
> -Click Run.
> -Type cmd
> -Click OK.
> -A command prompt window will open (looks like a DOS window).
> -Type "net stop spooler" (without the quotes).
> -Press the Enter key.
> -You will see a message after a few seconds that the spooler service stopped
> successfully.
> -Navigate to and delete all files in the folder
> C:\Windows\System32\Spool\Printers. (note that your path, depending on your
> XP install, may be C:\WINNT\System32\Spool\Printers). I don't know the path
> in Vista, but it's probably the same. These file(s) you're deleting are the
> hung print job.
> -Type "net start spooler" (without the quotes).
> -Press the Enter key.
> -After you see a message that the spooler service started successfully, type
> "exit" (without the quotes).
> -Press the enter key (this is the best way to gracefully close the command
> prompt window).

 
Reply With Quote
 
Professor Primo
Guest
Posts: n/a

 
      11-10-2007
"Paul" wrote:
>I would like to turn the following instructions (for deleting the current
> print job) into a batch file, so I don't have to do all this while my
> laser
> is printing up page after page. Is this possible?
>
> To clean out the queue without a reboot:
> -Click Start
> -Click Run.
> -Type cmd
> -Click OK.
> -A command prompt window will open (looks like a DOS window).
> -Type "net stop spooler" (without the quotes).
> -Press the Enter key.
> -You will see a message after a few seconds that the spooler service
> stopped
> successfully.
> -Navigate to and delete all files in the folder
> C:\Windows\System32\Spool\Printers. (note that your path, depending on
> your
> XP install, may be C:\WINNT\System32\Spool\Printers). I don't know the
> path
> in Vista, but it's probably the same. These file(s) you're deleting are
> the
> hung print job.
> -Type "net start spooler" (without the quotes).
> -Press the Enter key.
> -After you see a message that the spooler service started successfully,
> type
> "exit" (without the quotes).
> -Press the enter key (this is the best way to gracefully close the command
> prompt window).


Batch file:

net stop spooler
del/f/q "c:\Windows\System32\Spool\Printers\*.*"
net start spooler


 
Reply With Quote
 
Paul
Guest
Posts: n/a

 
      11-10-2007
Thanks, Primo. That did it. I do have a further question. I practiced by
printing a 400 page pdf, and it took roughly 20 pages (after I started the
batch file) before the job itself stopped printing. Would it have stopped
sooner, if the original document was smaller? Or is that simply how long it
takes, regardless, to stop a current print job? Thanks again. This will save
me a fair amount of time when I'm in a big hurry.



"Professor Primo" wrote:

> Batch file:
>
> net stop spooler
> del/f/q "c:\Windows\System32\Spool\Printers\*.*"
> net start spooler
>
>
>

 
Reply With Quote
 
Professor Primo
Guest
Posts: n/a

 
      11-10-2007
"Paul" wrote:
>> Batch file:
>> net stop spooler
>> del/f/q "c:\Windows\System32\Spool\Printers\*.*"
>> net start spooler

>
> I practiced by printing a 400 page pdf, and it took roughly
> 20 pages (after I started the batch file) before the job itself
> stopped printing. Would it have stopped sooner, if the original
> document was smaller? Or is that simply how long it takes,
> regardless, to stop a current print job?


You also have to clear the printer's memory (turn the printer off).



--
Posted via a free Usenet account from http://www.teranews.com

 
Reply With Quote
 
Paul
Guest
Posts: n/a

 
      11-10-2007
OK, thanks. I did find out that the size of the original document didn't
matter--i counted some 24 pages after I cancelled the printing of multiple
copies of an 11-page document.

"Professor Primo" wrote:

> "Paul" wrote:
> >> Batch file:
> >> net stop spooler
> >> del/f/q "c:\Windows\System32\Spool\Printers\*.*"
> >> net start spooler

> >
> > I practiced by printing a 400 page pdf, and it took roughly
> > 20 pages (after I started the batch file) before the job itself
> > stopped printing. Would it have stopped sooner, if the original
> > document was smaller? Or is that simply how long it takes,
> > regardless, to stop a current print job?

>
> You also have to clear the printer's memory (turn the printer off).
>
>
>
> --
> Posted via a free Usenet account from http://www.teranews.com
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
batch file help DarthRevan561 Windows Vista General Discussion 6 02-02-2008 12:00 AM
Batch file Bob Windows Vista General Discussion 2 01-20-2008 12:39 PM
Batch file Bob Windows Vista File Management 0 01-06-2008 07:39 PM
batch file calling exe file problem JPS Windows Vista Security 1 12-20-2007 12:18 AM
Need help with batch file n o s p a m p l e a s e Windows Vista General Discussion 11 10-14-2007 06:35 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59