运行BAT文件时出现错误代码12 [英] Error code 12 while running BAT files

查看:171
本文介绍了运行BAT文件时出现错误代码12的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我试图通过批处理文件执行第三方应用程序.
批处理cfile具有如下内容
"C:\ Testing \ Engine.exe" a

其中"a"是要暂停的参数.
VB应用程序通过Shell命令调用此批处理.

在VB应用程序中通过shell命令执行此批处理文件时,它记录错误代码为12.
当我在google中搜寻时,我发现错误代码12表示"无效的acces代码".

当我尝试通过其他系统运行相同的批处理过程时,没有这样的错误.

那么无效的访问代码"到底是什么意思,这仅在某些计算机上发生.

Hi All

I tried to exceute a third part application through a batch file.
The batch cfiles has contents like below
"C:\Testing\Engine.exe" a

Where "a" is a parameter to be paased.
This batch is called by a VB application through Shell command.

While executing this batch file through shell command in VB application, it logs a error code as 12.
When I searced in google I found that the error code 12 means "Invalid acces code".

When i tried to run the same batch process through other system, there was no such error.

So what exactly is "Invalid access code" means and how is this occuring only to certain computers.

Can you please help me in resolving this issue?

推荐答案

问题是,几乎什么都可以.
最有可能是发生故障的系统是Vista或Win 7,并且正在访问您没有必需权限的文件夹/文件.
The trouble is, that it could be almost anything.
The most likely is that the systems on which it is failing are either Vista or Win 7 and accessing a folder / file to which you do not have the necessary permissions.


这篇关于运行BAT文件时出现错误代码12的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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