在客户端计算机上运行.Bat文件 [英] Run a .Bat file on the client machine

查看:74
本文介绍了在客户端计算机上运行.Bat文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有办法吗?


thx ... sonny

解决方案

当然,如果你可以说服他们忽略所有的安全警告,并且安装一个运行批处理文件的ActiveX控件。


" sonny" <所以*** @ discussions.microsoft.com>在消息中写道

新闻:3B ********************************** @ microsof t.com ...

有办法吗?

thx ... sonny




不是真的。您想要实现什么业务要求?

很有可能,我们可以提供更多可行的替代方案。


-

HTH,


Kevin Spencer

Microsoft MVP

..Net开发人员

无论是追随者也不是贷款人。


" sonny" <所以*** @ discussions.microsoft.com>在消息中写道

新闻:3B ********************************** @ microsof t.com ...

有没有办法做到这一点?

thx ... sonny


我必须向COM1端口发送一些字节。有斑马打印机等待

在那里打印我的标签:)


当前应用程序是一个Windows应用程序(Visual FoxPro)打开一个

命令shell和TYPE是COM1的文本文件(标签)。这会打印

标签。我正在尝试复制这个函数。


如果我启动一个打开命令shell的进程,这显然不起作用

因为它是服务器边码。我尝试了一些代码,我在使用一些javascript的

用户组中找到了这些代码。我还没有工作,但是我会认为这是要走的路,因为javascript在客户端工作

而不是服务器。 />

任何帮助将不胜感激... sonny

" Kevin Spencer"写道:

不是真的。您想要实现什么业务要求?
有可能,我们可以提供更多可行的替代方案。

-
HTH,

Kevin Spencer
微软MVP
..开发商
无论是追随者还是贷方都不是。

sonny <所以*** @ discussions.microsoft.com>在消息中写道
新闻:3B ********************************** @ microsof t.com。 ..

有没有办法做到这一点?

thx ... sonny




Is there a way to do it?

thx...sonny

解决方案

Sure, if you can convince them to ignore all the security warnings and
install an ActiveX control that runs the batch file.

"sonny" <so***@discussions.microsoft.com> wrote in message
news:3B**********************************@microsof t.com...

Is there a way to do it?

thx...sonny




Not really. What business requirement are you trying to achieve with this?
Chances are, we can offer more doable alternatives.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"sonny" <so***@discussions.microsoft.com> wrote in message
news:3B**********************************@microsof t.com...

Is there a way to do it?

thx...sonny



I have to send some bytes to the COM1 port. There''s a Zebra printer waiting
to print my labels there :)

The current application is a Windows app (Visual FoxPro) that opens a
command shell and TYPEs a text file (the label) to COM1. This prints the
label. I am trying to duplicate this function.

If I start a process to open a command shell, this obviously doesn''t work
because it is server side code. I tried some bit of code that I found in the
user groups that used some javascript. I haven''t gotten it to work, but I
would think that is the way to go, since javascript works on the client
instead of the server.

Any help would be appreciated...sonny
"Kevin Spencer" wrote:

Not really. What business requirement are you trying to achieve with this?
Chances are, we can offer more doable alternatives.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"sonny" <so***@discussions.microsoft.com> wrote in message
news:3B**********************************@microsof t.com...

Is there a way to do it?

thx...sonny




这篇关于在客户端计算机上运行.Bat文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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