PC Review


Reply
Thread Tools Rate Thread

Delete Print Queue on NT4

 
 
New User
Guest
Posts: n/a
 
      18th Apr 2006
Hello:

Does any tools or command that I can remove the print queue by
command line?

Thanks a lot!
 
Reply With Quote
 
 
 
 
Timo Salmi
Guest
Posts: n/a
 
      18th Apr 2006
New User wrote:
> Does any tools or command that I can remove the print queue by
> command line?


Unfortunately I do not know if the XP script below will work for NT4,
but there it is just in case

129) Is it possible to stop and reset the print spooler with a script?
157253 Mar 9 2006 ftp://garbo.uwasa.fi/pc/link/tscmd.zip
tscmd.zip Useful NT/2000/XP script tricks and tips, T.Salmi

@echo off & setlocal enableextensions
echo +----------------------------------------------------+
echo : CLRSPOOL.CMD Stop and reset print spooler :
echo : By Prof. Timo Salmi, Last modified Sun 29-Jan-2006 :
echo +----------------------------------------------------+
::
if "%~1"=="?" goto _usage
if "%~1"=="/?" goto _usage
::
:: The path to the spooler files
set spool_=C:\WINDOWS\system32\spool\PRINTERS
::
:: Spool contents
dir "%spool_%"
echo.
::
:: Ask for confirmation
set ask_=
set /p ask_="Reset the print spooler [Y/n]?"
if /i [%ask_%]==[n] goto _out
::
:: Clear the spooler
net stop spooler
for %%f in ("%spool_%\*.*") do (
if exist "%%f" del "%%f"
)
net start spooler
:: See FAQ item #2 for an explanation of the next line
dir "%spool_%"
if not defined cmdbox if defined PauseIfFromDesktop pause
goto _out
::
:_usage
echo.
echo Usage: DELSPOOL
echo.
echo High enough user privileges are required to complete this task.
echo Else the net stop/start commands will just produce error
messages.
goto _out
::
:_out
endlocal & goto :EOF

All the best, Timo

All the best, Timo

--
Prof. Timo Salmi ftp & http://garbo.uwasa.fi/ archives 193.166.120.5
Department of Accounting and Business Finance ; University of Vaasa
private.php?do=newpm&u= <http://www.uwasa.fi/~ts/> ; FIN-65101, Finland
Useful batch files and tricks ftp://garbo.uwasa.fi/pc/link/tsbat.zip
 
Reply With Quote
 
Mark V
Guest
Posts: n/a
 
      18th Apr 2006
In microsoft.public.win2000.cmdprompt.admin New User wrote:

> Hello:
>
> Does any tools or command that I can remove the print queue by
> command line?


Not sure this applies to NT4.
I seem to recall (long ago) that one needed to enumerate the JOBS
using
NET PRINT nnn
and then DELETE each Job by job number. This can be done in a batch
file, but I have no example handy. HTH AND ICBW.
 
Reply With Quote
 
New User
Guest
Posts: n/a
 
      19th Apr 2006
Hello:

Thanks for your reply, I would like to delete the Print Queue
instead of del the print job. It is possible?

Thanks!
 
Reply With Quote
 
John John
Guest
Posts: n/a
 
      19th Apr 2006
NET STOP SPOOLER

cd %systemroot%\SYSTEM32\spool\PRINTERS

del *.spl
del *.shd

NET START SPOOLER

John

New User wrote:
> Hello:
>
> Thanks for your reply, I would like to delete the Print Queue instead
> of del the print job. It is possible?
>
> Thanks!


 
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
How to cancel printing or to delete a print job that is stuck in the print queue in Windows XP Alan Morris [MSFT] Windows XP Print / Fax 6 30th May 2008 06:23 PM
Can not delete print jobs or files in print queue =?Utf-8?B?S3VydCBNLiBTYW5nZXI=?= Windows XP General 1 24th May 2006 02:00 AM
Can't Delete Print Job From Queue Dave Windows XP Print / Fax 2 28th May 2004 06:28 AM
Print Job Won't Delete from Queue Mark Viltan Microsoft Windows 2000 Printing 1 1st Jan 2004 04:35 PM
cannot delete print jobs from print queue Raj Windows XP Print / Fax 0 19th Sep 2003 10:46 AM


Features
 

Advertising
 

Newsgroups
 


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