将焦点设置到批处理应用程序 [英] Set focus to an application with batch

查看:256
本文介绍了将焦点设置到批处理应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的WinXP,我有一个批处理脚本,我确定一个Excel工作表的文件名,然后通过简单的启动是Excel工作表中启动它。

I'm using WinXP and I have a batch script where I determine the filename of an Excel sheet and then launch it by simply launching that Excel sheet.

问题是,Excel正当时运行状态。所以,当批处理文件启动Excel工作表时,Excel被送到前面,Excel工作表中打开。不过,重心仍然是在哪里批处理文件运行DOS窗口。

The problem is that Excel is running at that time. So when the batch file launches the Excel sheet, Excel is sent to front and the Excel sheet opens. However, the focus still is on the DOS-box where the batch file is running.

我如何设置这种情况下的焦点转移到Excel工作表?

How do I set the focus to the Excel sheet in this situation?

推荐答案

我想我是缘木求鱼。 (

I guess I was asking for the impossible. :(

这篇关于将焦点设置到批处理应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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