运行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.