PC Review


Reply
Thread Tools Rate Thread

My OS can not interpreter FOR command

 
 
ahmed ramadan
Guest
Posts: n/a
 
      29th Sep 2003
i have Windows 2000 Server,and when try to run the
following command :
FOR /F %%a IN ('CD') DO (
SET CMDDIR=%%a
)
The Error Message Display :-
..
'CD' is not recognized as an internal or external command,
operable program or batch file.
Note:
the above error not display on another servers except this
server .

 
Reply With Quote
 
 
 
 
Mark V
Guest
Posts: n/a
 
      29th Sep 2003
ahmed ramadan wrote in news:1fe701c38685$40f7f470$(E-Mail Removed):

> i have Windows 2000 Server,and when try to run the
> following command :
> FOR /F %%a IN ('CD') DO (
> SET CMDDIR=%%a
> )
> The Error Message Display :-
> .
> 'CD' is not recognized as an internal or external command,
> operable program or batch file.
> Note:
> the above error not display on another servers except this
> server .


I don't know what might cause that but I assume that you are running
CMD.EXE and that the "CD" command works outside of the batchfile.

For this (W2K) system perhaps a workaround is just to use the value in
the special variable %CD% for the time being.

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Type the name of the Command Interpreter Daniel Windows XP General 7 28th Nov 2009 06:33 PM
Command Interpreter? hal.dll =?Utf-8?B?TWljaGFlbCBN?= Windows XP General 2 6th Oct 2004 06:59 PM
Missing command interpreter Brian Windows XP Performance 1 18th Nov 2003 04:00 AM
Command Interpreter Wayne Windows XP Security 0 6th Sep 2003 04:07 PM
command interpreter Dan Plaut Windows XP Setup 1 30th Jul 2003 03:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:58 PM.