|
virtual
社区乞丐
积分 -16
发帖 11
注册 2008-11-2
状态 离线
|
『楼 主』:
一个20人公司都解决不了的问题:选取某个文件并打印
使用 LLM 解释/回答一下
公司现在做一个项目,项目中需要实现这样的一个功能,描述如下:
我安装了一个软件,可以将各种格式的文档转化为 gif 图片格式,比如将
.doc .txt .pdf .ppt等等,当鼠标选中某个文件时候,右键菜单中就有了一个打
印选项,系统的需要使用dos命令实现选取某个文件并且调用右键中的打印功。
该如何做呢?
───────────────── 版务记录 ─────────────────
执行:HAT
操作:在帖子标题中增加搜索关键字
说明:原标题"一个20人公司都解决不了的问题"不利于论坛搜索
处罚:因属论坛新人,不予积分处罚
提示:建议阅读以下帖子
{1415}提问的智慧
{7326}论坛新手必读,所有人的基本行为准则
{22703}请不要做浮躁的人
{32667}那些连标题都写不清楚的人们啊,你们醒醒吧
{32825}本版严厉整顿烂帖
───────────────── 版务记录 ─────────────────
Last edited by HAT on 2008-11-2 at 20:08 ]
[size=2]Our company is currently working on a project, and a function needs to be implemented in the project as described below:
I installed a software that can convert various format documents into GIF image format, such as converting .doc, .txt, .pdf, .ppt, etc. When the mouse selects a certain file, there is a print option in the right-click menu. The system needs to use DOS commands to select a certain file and call the print function in the right-click menu. How should this be done?[/size]
[color=blue]───────────────── Moderation Record ─────────────────
Performed: HAT
Operation: [2008-11-02] Added search keywords in the post title
Description: The original title "A Problem That Even a Company of 20 People Can't Solve" is not conducive to forum search
Punishment: Since it is a new forum user, no point punishment is given
Tip: It is recommended to read the following posts
{1415}[url=http://www.cn-dos.net/forum/viewthread.php?tid=1415][color=red]The Wisdom of Asking Questions[/color][/url]
{7326}[url=http://www.cn-dos.net/forum/viewthread.php?tid=7326][color=red]Must-read for Forum Newcomers, Basic Code of Conduct for Everyone[/color][/url]
{22703}[url=http://www.cn-dos.net/forum/viewthread.php?tid=22703][color=red]Please Don't Be an Impatient Person[/color][/url]
{32667}[url=http://www.cn-dos.net/forum/viewthread.php?tid=32667][color=red][Angry]Those Who Can't Even Write a Clear Title, Wake Up[/color][/url]
{32825}[url=http://www.cn-dos.net/forum/viewthread.php?tid=32825][color=red]This Board Severely Rectifies Poor Posts[/color][/url]
───────────────── Moderation Record ─────────────────[/color]
[[i] Last edited by HAT on 2008-11-2 at 20:08 [/i]]
|
|
2008-11-2 19:24 |
|
|
yishanju
银牌会员
     [b]看你妹啊[/b]
积分 1488
发帖 1357
注册 2006-5-20
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
C:\Documents and Settings\Administrator>print /?
打印文本文件。
PRINT [/D:device] [[drive:][path]filename[...]]
/D:device 指定打印机设备。
C:\Documents and Settings\Administrator>print /?
Print a text file.
PRINT filename]
/D:device Specify the printer device.
|

有问题请发论坛或者自行搜索,再短消息问我的统统是SB |
|
2008-11-2 19:40 |
|
|
virtual
社区乞丐
积分 -16
发帖 11
注册 2008-11-2
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
好像不太对,试过了,关键那个/d:device 不知道该怎么写
是打印机名称 还是端口名称?
It seems not right. I've tried. The key is that I don't know how to write /d:device. Is it the printer name or the port name?
|
|
2008-11-2 21:00 |
|
|
dikex
高级用户
    潜水修练批处理
积分 788
发帖 366
注册 2006-12-31
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
范例
要将当前目录中的 Report.txt 发送到连上本地计算机的 LPT2,请键入:
print /d:LPT2 report.txt
要将 c:\Accounting 目录中的 Report.txt 文件发送到服务器 \\CopyRoom 上的 Printer1 打印队列,请键入:
print /d:\\copyroom\printer1 c:\accounting\report.txt
详细的运行hh.exe C:\WINDOWS\Help\ntcmds.chm::/print.htm
Example
To send Report.txt in the current directory to LPT2 connected to the local computer, type:
print /d:LPT2 report.txt
To send the Report.txt file in the c:\Accounting directory to the Printer1 print queue on the server \\CopyRoom, type:
print /d:\\copyroom\printer1 c:\accounting\report.txt
Detailed operation hh.exe C:\WINDOWS\Help\ntcmds.chm::/print.htm
|

正在潜水修练的批处理小白 |
|
2008-11-2 21:40 |
|
|
yishanju
银牌会员
     [b]看你妹啊[/b]
积分 1488
发帖 1357
注册 2006-5-20
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
没用这个命令打印过东西,不过device应该填打印机命令
I haven't used this command to print anything before, but the device should be filled with the printer command
|

有问题请发论坛或者自行搜索,再短消息问我的统统是SB |
|
2008-11-2 21:46 |
|
|
virtual
社区乞丐
积分 -16
发帖 11
注册 2008-11-2
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
Originally posted by dikex at 2008-11-2 21:40:
范例
要将当前目录中的 Report.txt 发送到连上本地计算机的 LPT2,请键入:
print /d:LPT2 report.txt
要将 c:\Accounting 目录中的 Report.txt 文件发送到 ...
按照上面做了,我的端口名称是img_00
print /d:img_00 a.txt提示无法初始化img_00设备
[quote]Originally posted by [i]dikex[/i] at 2008-11-2 21:40:
**Example**
To send Report.txt in the current directory to LPT2 connected to the local computer, type:
print /d:LPT2 report.txt
To send the Report.txt file in the c:\Accounting directory to ... [/quote]
Did as above, my port name is img_00
Typing print /d:img_00 a.txt prompts that the img_00 device cannot be initialized
|
|
2008-11-2 21:55 |
|
|
virtual
社区乞丐
积分 -16
发帖 11
注册 2008-11-2
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
"D:\Microsoft Office\Office12\WINWORD.EXE" /x /n /dde
[REM _DDE_Minimize][FileOpen("%1")][t=IsDocumentDirty()][FilePrint 0][SetDocumentDirty t][DocClose]
这样的命令参数怎么用
How to use such command parameters
|
|
2008-11-2 22:14 |
|
|
yishanju
银牌会员
     [b]看你妹啊[/b]
积分 1488
发帖 1357
注册 2006-5-20
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
家里没打印机,不知道怎么测试,楼主要是解决了这问题,可要上来发贴说一下怎么解决的
No translation needed as the text is in Chinese but the user just provided that sentence and the instruction is to translate from Chinese to English if not already, but this is already in Chinese. Wait, no, wait. Wait the original input is "家里没打印机,不知道怎么测试,楼主要是解决了这问题,可要上来发贴说一下怎么解决的" which needs to be translated to English.
Translation: There is no printer at home, I don't know how to test. If the landlord solves this problem, he must come up and post to say how to solve it.
|

有问题请发论坛或者自行搜索,再短消息问我的统统是SB |
|
2008-11-2 22:17 |
|
|
dikex
高级用户
    潜水修练批处理
积分 788
发帖 366
注册 2006-12-31
状态 离线
|
|
2008-11-2 22:46 |
|
|
virtual
社区乞丐
积分 -16
发帖 11
注册 2008-11-2
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
"D:\Microsoft Office\Office12\WINWORD.EXE" /x /n /dde
[REM _DDE_Minimize][FileOpen("%1")][t=IsDocumentDirty()][FilePrint 0][SetDocumentDirty t][DocClose]
关键参数不知道怎么写 如果给个完整带参数的例子 我将能终结这个帖子
我的写法是 "D:\Microsoft Office\Office12\WINWORD.EXE" /x /n /dde
fileipen("e:\a.doc") fileprint 0 但是没结果
"D:\Microsoft Office\Office12\WINWORD.EXE" /x /n /dde
[REM _DDE_Minimize][FileOpen("%1")][t=IsDocumentDirty()][FilePrint 0][SetDocumentDirty t][DocClose]
I don't know how to write the key parameters. If you give a complete example with parameters, I will be able to end this thread.
My writing is "D:\Microsoft Office\Office12\WINWORD.EXE" /x /n /dde
fileipen("e:\a.doc") fileprint 0 but there is no result
|
|
2008-11-2 23:41 |
|
|
dikex
高级用户
    潜水修练批处理
积分 788
发帖 366
注册 2006-12-31
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
某处找到的,利用宏
"C:\......\WINWORD.EXE" "d:\......\a.doc" /mFilePrintDefault
Found somewhere, using the macro
"C:\......\WINWORD.EXE" "d:\......\a.doc" /mFilePrintDefault
|

正在潜水修练的批处理小白 |
|
2008-11-2 23:59 |
|
|
virtual
社区乞丐
积分 -16
发帖 11
注册 2008-11-2
状态 离线
|
『第 12 楼』:
怎样调用批处理命令实现word右键的打印功能?
使用 LLM 解释/回答一下
问题是这样的:调用批处理命令实现word右键的打印功能,powerpoint实现右键打印功能是这样的
"D:\Microsoft Office\Office12\POWERPNT.EXE" /p "e:\a.ppt"
word文档用同样的方法不凑效,该怎么做?
(说明,你不需要安装打印机就可以测试,因为打印只是将文档转化为图片)
───────────────── 版务记录 ─────────────────
执行:HAT
操作:在帖子标题中增加搜索关键字;代码加code标签
说明:原标题"一个难倒很多很多人的问题,需要你的终结"不利于论坛搜索
处罚:扣除2点积分
提示:建议阅读以下帖子
{1415}提问的智慧
{7326}论坛新手必读,所有人的基本行为准则
{22703}请不要做浮躁的人
{32667}那些连标题都写不清楚的人们啊,你们醒醒吧
{32825}本版严厉整顿烂帖
───────────────── 版务记录 ─────────────────
Last edited by HAT on 2008-11-3 at 16:12 ]
The problem is like this: To use batch commands to realize the print function of right - click in Word, and the way to realize the right - click print function in PowerPoint is like this:
[code]"D:\Microsoft Office\Office12\POWERPNT.EXE" /p "e:\a.ppt"[/code]
The same method is not effective for Word documents. How should it be done?
(Note: You can test without installing a printer because printing just converts the document into an image)
[color=blue]───────────────── Moderation Record ──────────────────
Execution: HAT
Operation: [2008 - 11 - 03] Add search keywords in the post title; add code tags to the code
Explanation: The original title "A problem that stumps many, many people, need your final solution" is not conducive to forum search
Punishment: Deduct 2 points of points
Tip: It is suggested to read the following posts
{1415}[url=http://www.cn-dos.net/forum/viewthread.php?tid=1415][color=red]The Wisdom of Asking Questions[/color][/url]
{7326}[url=http://www.cn-dos.net/forum/viewthread.php?tid=7326][color=red]Essential Read for Forum Newcomers, Basic Code of Conduct for Everyone[/color][/url]
{22703}[url=http://www.cn-dos.net/forum/viewthread.php?tid=22703][color=red]Please Don't Be an Impatient Person[/color][/url]
{32667}[url=http://www.cn-dos.net/forum/viewthread.php?tid=32667][color=red][Angry]Those People Who Can't Even Write a Clear Title, Wake Up[/color][/url]
{32825}[url=http://www.cn-dos.net/forum/viewthread.php?tid=32825][color=red]This Forum Severely Rectifies Poor - Quality Posts[/color][/url]
───────────────── Moderation Record ──────────────────[/color]
[[i] Last edited by HAT on 2008 - 11 - 3 at 16:12 [/i]]
此帖被 -2 点积分 点击查看详情 评分人:【 HAT 】 | 分数: -2 | 时间:2008-11-3 16:12 |
|
|
|
2008-11-3 10:43 |
|
|
ccily2701
初级用户
 
积分 80
发帖 45
注册 2006-9-22 来自 jiangxi
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
DOS批处理 & 脚本技术(批处理室)
DOS Batch Processing & Scripting Technology (Batch Processing Room)
|
|
2008-11-3 10:50 |
|
|
virtual
社区乞丐
积分 -16
发帖 11
注册 2008-11-2
状态 离线
|
『第 14 楼』:
再解释一下
使用 LLM 解释/回答一下
问题是这样的:调用批处理命令实现word右键的打印功能,powerpoint实现右
键打印功能是这样的,"D:\Microsoft Office\Office12
\POWERPNT.EXE" /p "e:\a.ppt" ,word文档用同样的方法不凑效,该怎么做?
(说明,你不需要安装打印机就可以测试,因为打印只是将文档转化为图片)
"D:\Microsoft Office\Office12\WINWORD.EXE" /p "e:/a.doc"不凑效
The problem is like this: To use batch commands to implement the print function in the right-click of Word, and for PowerPoint to implement the right-click print function is like this, "D:\Microsoft Office\Office12\POWERPNT.EXE" /p "e:\a.ppt". The same method for Word documents doesn't work. How to do it? (Note that you don't need to install a printer to test, because printing just converts the document into an image) "D:\Microsoft Office\Office12\WINWORD.EXE" /p "e:/a.doc" doesn't work
|
|
2008-11-3 13:07 |
|
|
wxcute
中级用户
  
积分 458
发帖 211
注册 2006-7-26
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
写出你安装的是什么软件
贴出你的右键菜单图片
找出注册表中相应值(如果有的话)(不会也有人会帮你)
======================
将会对回答问题的人有帮助
Write what software you installed
Post a picture of your right-click menu
Find the corresponding value in the registry (if any) (no one will help you if you don't)
======================
Will be helpful to people answering questions
|

┌───────┐
├→学习→实践→┤
└───────┘ |
|
2008-11-3 14:36 |
|