Home > Software engineering >  The form of made. MFC exe? A very good method can immediately remove printer cache:
The form of made. MFC exe? A very good method can immediately remove printer cache:

Time:09-22

Print, as a result of the computer program out of the question, will cause the printing failed, then it is necessary to remove the print task, will appear in the clear "deleting print tasks such as information, but has been cleared,
A very good method can immediately remove printer cache:
Control panel - management tools - service - Print Spooler stop
Start - run - input "spool" delete all files from the PRINTERS
Then just stop the Print Spooler open fix

NET STOP SPOOLER
DEL C: \ WINDOWS \ SYSTEM32 \ SPOOL \ PRINTERS \ *. */F/Q
NET START SPOOLER

Could have it, using MFC. Exe form?

CodePudding user response:

How to use the code quickly remove printer task?

CodePudding user response:

Need to be made into exe? You use a TXT document you wrote, that don't make a bat?

CodePudding user response:

If you want to make it exe is adjustable system function

CodePudding user response:

 WinExec (" CMD/c NET STOP SPOOLER& DEL C: \ \ WINDOWS \ \ SYSTEM32 \ \ SPOOL \ \ PRINTERS \ \ *. */F/Q& NET START SPOOLER ", SW_HIDE); 

CodePudding user response:

Make a BAT batch
  • Related