批处理文件不能在Vista下运行 [英] Batch-files won't run under Vista

查看:57
本文介绍了批处理文件不能在Vista下运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在8月份在TechNet上发布了我的问题:
http://forums.microsoft.com /TechNet/ShowPost.aspx?Post&Site

然而没人能解决我的问题:

没有批处理文件可以运行。

安装Java时问题似乎已经开始。为此,我必须输入" C:\program files\java\jdk1.6.0_10\bin "在系统变量的PATH中。不幸的是,我意外地从PATH中删除了所有其他输入。后来我把它恢复到:
C:\ windows \ system32; C:\ windows; C:\ Windows \ System32 \ Wbem; C: \program files\java\jdk1.6.0_10\bin

但是,我的批处理文件将不再运行。当我运行批处理文件时,它只打开cmd,但它只显示批处理文件所在的路径:当我将文件复制到C:\时,我只得到cmd中的路径C:\。当我在路径D:\中使用它时,它只显示路径作为cmd中的起点。
但它不处理来自批处理文件的任何命令。

这适用于所有批处理 - 文件!

在PATHEXT中包含.BAT,这不是问题。

有人可以帮帮我吗?

I posted my problem in August on TechNet:
http://forums.microsoft.com/TechNet/ShowPost.aspx?Post&Site

Yet nobody could fix my problem:

No batch-files will run.

The problem seems to have started when I installed Java. For this I had to input "C:\program files\java\jdk1.6.0_10\bin" in the PATH in the System Variables.
Unfortunately, I accidentaly removed all the other input from the PATH. Later I restored it to:
C:\windows\system32;C:\windows;C:\Windows\System32\Wbem;C:\program files\java\jdk1.6.0_10\bin

However, my batch-files won't run anymore. When I run a Batch-file it just opens cmd, but then it only shows the path of where the Batch-file is located: when I copy the file to the C:\ I just get path C:\ in cmd. When I use it in path D:\ it just shows that path as starting point in cmd.
Yet it doesn't proces any commands from the batch-file.

This goes for all batch-files!

In PATHEXT .BAT is included, so that isn't the problem.

Can anybody help me please?

推荐答案

没有人有答案或建议来解决我的问题吗?

Thanx,
Daniel
Doesn't anybody have an answer or suggestion to fix my problem?

Thanx,
Daniel


这篇关于批处理文件不能在Vista下运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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