• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

DOS question: Attrib command

Muse

Lifer
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.
 
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 😉.
 
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.
 
Back
Top