English 中文(简体)
批号被打脚或 lo:未被确认为内部或外部指挥、可操作的方案或批号档案
原标题:Error with bat file token or for loop: not recognized as an internal or external command, operable program or batch file

Need Windows .bat file tech support. I am having trouble running Win 7 bat files which loop through tokens and variables. The script below works on my wifes PC, and should on all PCs, but does not on mine.

** 本文件迟交。 我正在Mack Ware与我的Ma一道使用Windows 7。

档案根基是:

这份短篇的文字,以及任何像它一样带有脚印的文字都给我留下错误(我把下文的文字抄到下号档案中):

setLocal ENABLEDELAYEDEXPANSION
set SCHEMA_one= first
set SCHEMA_two= second
set SCHEMA_three= third

@ECHO ON
FOR /F "tokens=2* delims=_=" %%A IN ( set SCHEMA_ ) DO (
    echo "looping through " %%A
)
endLocal

我有以下错误:

C:>FOR /F "tokens=2* delims=_=" %A IN ( set SCHEMA_ ) DO (echo "looping through " %A )  
 set SCHEMA_  is not recognized as an internal or external command, operable program or batch file.

想法?

很多人预先表示感谢。 我被 st了几个小时。

最佳回答

EDIT-I DID找到答案。 完整的用户错误。

在某些时候,欧洲委员会环境变化的道路已经改变,而妇女权利行动组织也是如此! typ! So lame.

在比较我的新环境与旧环境之间的紧急变量时,我最后注意到了台风。 人类,一个特性就耗费了几个小时。 我在(尽管现在显而易见)之前就认识到,这是用来指挥营的道路,或者我会给它带来更多的痛苦。 难道这根本不可行吗?

================ Well, I am not happy with the fix- because it was a BIG hammer. But I installed a new Windows 7 VM, and now I can run the script. Earlier In stalled a newer version of the vm- 3.1.4 ( the newest free upgrade from my 3.1.2 ) and that did not solve the problem. And before that I tried the things suggested above ( Many thanks to the people who posted above! )

不清楚用我的窗户安装了什么,但却有点。 我与其他电脑相比,我的环境使大家看得好。 Java好等。 就我的用户是否对这部证书做了说明,或者说是什么? 不详。 时间过长,不得不走下去:

如果我看上去,我将回答。 在这段时间里,我正在建立,希望能够从这一新的证书中受益。

cheers! Dustin

问题回答

或许需要查阅<代码>以便/?,特别是usebackq的使用。 这可以改变对你的解释。

此外,我一直使用<条码>可扩展性,载于我的<条码>。 此外,为确保环境,我需要设立实际

另一件事是把你的批量文档放在黑轴上,以确保<代码>> > > > > 和<代码>SCHEMA之间的特性实际上是一个空间。 如果其特性不同,则<代码>cmd可能处理<代码>。 SCHEMA (. 是该名指挥官。)





相关问题
Why running a service as Local System is bad on windows?

I am trying to find out the difference between difference service account types. I tumbled upon this question. The answer was because it has powerful access to local resources, and Network Service ...

Programmatically detect Windows cluster configuration?

Does anyone know how to programatically detect that a Windows server is part of a cluster? Further, is it possible to detect that the server is the active or passive node? [Edit] And detect it from ...

get file icon for Outlook appointment (.msg)

I ve read Get File Icon used by Shell and the other similar posts - and already use SHFileInfo to get the associated icon for any given extension, and that works great. However, Outlook uses ".msg" ...

Identifying idle state on a windows machine

I know about the GetLastInputInfo method but that would only give me the duration since last user input - keyboard or mouse. If a user input was last received 10 minutes ago, that wouldn t mean the ...

Terminating a thread gracefully not using TerminateThread()

My application creates a thread and that runs in the background all the time. I can only terminate the thread manually, not from within the thread callback function. At the moment I am using ...

热门标签