我用的是.net2.0,有没有方法在程序里面直接清空打印队列?还希望高手详解

解决方案 »

  1.   


    You barely answered LZ's question. His project is built on version 2.0, so it's irrelevant to discuss version issue. It appears to me that you have no programming experience in real world and hence you've no idea as to how to deal with such problem.
      

  2.   

    我只会用DOS命令清除:
    echo off
    color a
    echo 快速清除打印?列
    net stop spooler
    echo y|del %windir%\system32\spool\PRINTERS\*.*
    net start spooler
    pause把这段DOS命令编成一个bat文件,然后让C#调用不就好了吗?