DOS question: Attrib command

Muse

Lifer
Jul 11, 2001
39,937
9,623
136
I'm trying to change the attribute of a file using a boot disk. I'm getting the message - Bad Command or File Name. This is using Windows 95 boot disk and DOS 6.2. One of my Windows 98 boot disks doesn't give this message but I'm told that it won't change the attribute - I'm trying to make a file not hidden and not system. I'm issuing the command like this:

C\>attrib -h boot.ini

Bad command or file name.

What am I missing here? Thanks.

PS. I'm thinking of working around this by moving the file and creating another using notepad and giving it the name I want (boot.ini), but I want to know why I can't use the attrib command.
 

rbV5

Lifer
Dec 10, 2000
12,632
0
0
Syntax?
Should be "attrib -h -s C:\boot.ini"

err, I think..don't do DOS no more.




 

CTho9305

Elite Member
Jul 26, 2000
9,214
1
81
C:\WINDOWS>dir attrib*.* /s
Volume in drive C has no label.
Volume Serial Number is 3DEA-AE61

Directory of C:\WINDOWS\system32

08/23/2001 08:00 AM 11,264 attrib.exe
1 File(s) 11,264 bytes

Clearly it's a program, not a built-in command ;).
 

Muse

Lifer
Jul 11, 2001
39,937
9,623
136
Originally posted by: CTho9305
C:\WINDOWS>dir attrib*.* /s
Volume in drive C has no label.
Volume Serial Number is 3DEA-AE61

Directory of C:\WINDOWS\system32

08/23/2001 08:00 AM 11,264 attrib.exe
1 File(s) 11,264 bytes

Clearly it's a program, not a built-in command ;).
Good idea. I do see attrib.exe in Win98's version of DOS but I don't know if there is one in DOS 6.2. I suppose there is. Anyway, I did the workaround. Moved the file and created another in Notepad and renamed it. I'm looking at bootdisk.com for that attrib.exe file.

Edit: I downloaded the Win95 OSR2 bootdisk from bootdisk.com and created a boot floppy and it does have attrib.exe on it.