Changing Attribute of .sys files...?

This is a discussion on Changing Attribute of .sys files...? within the C Programming forums, part of the General Programming Boards category; I tried to Change the attribute of .sys files.. with c... bye this command system("attrib filename.sys -h"); I mean i ...

  1. #1
    Registered User jawwadalam's Avatar
    Join Date
    May 2002
    Posts
    131

    Question Changing Attribute of .sys files...?

    I tried to Change the attribute of .sys files.. with c...
    bye this command

    system("attrib filename.sys -h");
    I mean i tried to unhide the .sys file but the message displayed was
    "Not resetting system file."

    Help to solve the problem.... will be thankful...
    One day you will ask what more important to you..
    I will say my life..
    and You will leave me with even knowing
    that
    You are my Life (L)

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Not really a C question, eh?

    Anyway, if the file is hidden and system'd, you'll probably need to remove both attributes with one command.
    >attrib -s -h filename.sys

    But then what are you playing with that is system and hidden? Are you *supposed* to be doing that? I don't think the OS will be too pleased if you start touching it's files
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Reading .dat files from a folder in current directory...
    By porsche911nfs in forum C++ Programming
    Replies: 7
    Last Post: 04-04-2009, 10:52 PM
  2. Working with muliple source files
    By Swarvy in forum C++ Programming
    Replies: 1
    Last Post: 10-02-2008, 09:36 AM
  3. Batch file programming
    By year2038bug in forum Tech Board
    Replies: 10
    Last Post: 09-05-2005, 04:30 PM
  4. changing directory of io files
    By aarnal in forum C++ Programming
    Replies: 3
    Last Post: 09-11-2002, 12:45 PM
  5. reinserting htm files into chm help files
    By verb in forum Windows Programming
    Replies: 0
    Last Post: 02-15-2002, 09:35 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21