PC Review


Reply
Thread Tools Rate Thread

Can I turn this into a batch file or macro?

 
 
=?Utf-8?B?UGF1bA==?=
Guest
Posts: n/a
 
      10th Nov 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
 
      10th Nov 2007
Check out AutoIT. It's free and can automate most anything on a Windows PC.

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

jim

"Paul" <(E-Mail Removed)> wrote in message
news:CB267C32-4994-4717-8231-(E-Mail Removed)...
>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
 
=?Utf-8?B?TWljayBNdXJwaHk=?=
Guest
Posts: n/a
 
      10th Nov 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
 
      10th Nov 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
 
=?Utf-8?B?UGF1bA==?=
Guest
Posts: n/a
 
      10th Nov 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
 
      10th Nov 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
 
=?Utf-8?B?UGF1bA==?=
Guest
Posts: n/a
 
      10th Nov 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
Rate This Thread
Rate This Thread:

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 call from a macro - how ? and required batch format VB-rookie Microsoft Excel Programming 3 5th Sep 2008 10:33 PM
[OT batch file] Turn off/on various software in batch reader@newsguy.com Windows XP General 2 9th Sep 2006 04:26 AM
How to create a batch file automatically turn on the messenger =?Utf-8?B?TGlsbGlhbg==?= Windows XP General 1 23rd Mar 2006 10:09 PM
batch file to turn on sound after standby mode calpaul Windows XP Drivers 0 23rd Jan 2004 03:16 AM
Need to turn an excel file into a CSV in batch mode Scot Microsoft Excel Misc 0 14th Jan 2004 05:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:06 AM.