954,255 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Can't run some commands in cmd.

when I typed the command attrib it says, 'attrib' is not recognized as an internal or external command, operable program or batch file. And some other commands like 'edit'. And after the post of my pc , "INVALID BOOT.INI file, booting from c:\WINDOWS\.. so lame need help ^^

asameh99
Light Poster
32 posts since Jul 2008
Reputation Points: 10
Solved Threads: 0
 

attrib is a program, not an internal command.
Either, the program has been removed or renamed or it is not in your path.

Though it sounds like you have a more serious problem with the system. The BOOT.INI file is what Windows uses to determine where to find the windows installation to boot from (or what options to use). The message indicates that yours is invalid so it is booting by default from C:\WINDOWS.

How or why your BOOT.INI became invalid is not apparent from your description.

Murtan
Practically a Master Poster
671 posts since May 2008
Reputation Points: 344
Solved Threads: 116
 

Found this on the interwebs... don't know how relevant it is, therefore, to "INVALID BOOT.INI" file.

[However if you get this message, "'attrib' is not recognized as an internal or external command, operable program or batch file.", as I did, perform the following (must be logged on as an administrator):

Start >
Settings >
Control Panel >
System >
Advanced >
Environment Variables >
System Variables >
Locate and highlight Path >
Edit >
Add the following line of text (exactly as printed below) to the beginning of the Variable Value list:
C:\WINDOWS\system32;
Confirm by clicking OK to each request.]

Kapitaen M
Newbie Poster
8 posts since Nov 2008
Reputation Points: 10
Solved Threads: 1
 
caperjack
I hate 20 Questions
Team Colleague
13,069 posts since Aug 2003
Reputation Points: 1,064
Solved Threads: 812
 

I usually use the 'attrib' for removing viruses by changing their attributes, but now after that BOOT.INI issue I can't use it anymore. And one more thing I can't run the gpedit.msc program for some tweaks ^^, what am I thinking right now is to reinstall my OS, but most of the sites and forums that I had searched about that BOOT.INI thing, they said insert the XP cd and repair my bootcfg I'm just confused If what shall I do with my rig. . .

asameh99
Light Poster
32 posts since Jul 2008
Reputation Points: 10
Solved Threads: 0
 

XP pro right?

jbennet
Moderator
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 600
 

attrib is a command, it will not run from the run window because it is not a pgm.
May we have a glance at your boot.ini file, please?
Go Start, Run, paste in ..
control sysdm.cpl,,3 -and press Enter. Go Startup n Recovery Settings, press Edit button. Paste here the notepad that pops.

gerbil
Industrious Poster
4,206 posts since May 2005
Reputation Points: 239
Solved Threads: 300
 

BOOT.INI file issue solved, thanks guys ^^ , the problem left is I can't run some commands in command prompt like attrib, edit etc. T_T. And the gpedit.msc thing thanks for the help ^^

asameh99
Light Poster
32 posts since Jul 2008
Reputation Points: 10
Solved Threads: 0
 

for the cmd problem, best I can suggest is running..
sfc /scannow
to check nd replace any corrupt protected system files. Or just try copying in cmd.exe from your installation cd. It is in I386, you need to expand it thus:
expand "cd drive letter"\i386\cmd.ex_ %systemdrive%\system32\cmd.exe

gerbil
Industrious Poster
4,206 posts since May 2005
Reputation Points: 239
Solved Threads: 300
 

@Kapitaen M
thank u very much

Eng.muslima
Newbie Poster
4 posts since Jun 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You