如何在64位系统中运行批处理文件? [英] How to run Batch files in 64 Bit System?

查看:143
本文介绍了如何在64位系统中运行批处理文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我使用c#运行批处理文件有一个问题。



如果我手动运行批处理文件正在运行C:\ WINDOW \ System32 \ cmd.exe(命令提示符),Incase我正在使用通过c#批处理文件运行C:\ Windows \ SysWOW64 \ cmd。 exe(Windows命令处理器)。



我需要强行运行我的批处理文件到C:\ Windows \ System32 \ cmd.exe。



你可以帮助任何一个。



Regard's

Surendra Reddy。

Hi All,

I have one problem for running batch files using c#.

If I am running manually batch file is running with C:\Windows\System32\cmd.exe (Command Prompt), Incase I am using through c# batch file is running with C:\Windows\SysWOW64\cmd.exe (Windows Command Processor).

I need to run my batch file forcefully to C:\Windows\System32\cmd.exe only.

Can u help any one on this.

Regard's
Surendra Reddy.

推荐答案

尝试提供完整路径而不仅仅是cmd.exe。

Try giving full path instead of just "cmd.exe".
%windir%\System32\cmd.exe /c yourbatchFile.bat





希望,它有帮助:)



Hope, it helps :)


这篇关于如何在64位系统中运行批处理文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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