如何从服务器(LAN SERVER)运行批处理文件 [英] How to run Batch file from server (LAN SERVER)

查看:137
本文介绍了如何从服务器(LAN SERVER)运行批处理文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在ASP页面(使用VB代码)中,我创建了一个批处理文件来打印某些内容(例如\ lib \ myfile.bat)
因此,我希望客户端在打开asp页时将运行该文件.谁能帮我?我正在使用VB6(ASP页)

------------------------

其他人都可以使用VB(ASP页)帮助我将服务器上的.txt文件从服务器打印到LPT1(在客户端上)

感谢您的帮助!

Hi,

In ASP page (using VB code), I created a batch file to print something(like \lib\myfile.bat)
So, I want the client will run that file when it open the asp page. Can anyone help me? I''m using VB6 (ASP page)

------------------------

Else anyone can help me print a .txt file from server to LPT1 (on client) using VB (ASP page)

Thank for help!

推荐答案

ASP很垃圾,您为什么仍在使用它?

唯一的方法是

1-将txt文件打印到客户端,然后从那里打印
2-因为它是LAN,所以将服务器连接到网络上的所有打印机,然后可以编写服务器端代码以打印到已知的打印机.如果服务器没有打印机的路径,并且没有安装驱动程序,则仍然无法实现.
ASP is rubbish, why are you still using it ?

The ONLY way to do this is

1 - print the txt file to the client and then print it from there
2 - because it''s a LAN, have the server connected to all the printers on the network, then you can write server side code to print to a known printer. If the server doesn''t have the path to the printer, and the drivers installed, it''s still not going to be possible.


这篇关于如何从服务器(LAN SERVER)运行批处理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆