Set or changes File Attributes
batch programming can utilize for the purpose of the computer with the Windows operating system, one of the example is to make the automatic shutdown your PC, now we will try to learn
how to hide a file using batch programming, the following is the example code:
attrib + R + S + H *. doc
code above is an example to hide a file extension (. doc) which is
extension is microsoft office document file (Word document). following explanation of the code
Attrib displays or changes file attributes
+ ( R sets an attribute )
_ ( Clears an attribute )
R ( Read Only attribute )
A ( attibute Archive File )
S ( System file attribute )
H ( Hidden file attribute )
/ S ( Matching Processes in the curent files folder and all subfolders )
/ D ( Processes folders as well )
other example (clear attributes):
attrib -r -s -h *. doc
the code is the code for clear attributes of a file (in this example is all file .doc). and the following example syntax attrib to hide files:
attrib +h “D: \*. doc” / s / d
write code in notepad, save with the extension. bat and then you try to run the file, then all file extensions . doc on drive D: \ will be hide. to return your stay replace code + with -
Related posts:
- Make detection Files with batch using batch programming, we can detect a file on the...
- Introduction Batch Programming batch programming language is used by the Command Prompt (CMD),...
- Automatic Shutdown PC With simple batch programming after knowing the basic programming batch (batch introduction) we know...
- Simple Steps to anticipate Virus There are a few simple steps to protect your computer...
- MS-DOS to reset BIOS password than can be used to create a detection files, changes...
||
Comments
Pingback from Make detection Files with batch
Time May 18, 2009 at 6:12 am
[...] after saved,. please try to run the file with a Double Click Filedetector.bat. FileDetector with the program we can develop to become more complex again. after knowing the simple basic code , we can create a more useful FileDetector, and with understand the code we can create the ideas for more useful purposes on a computer wich using windows operating system. for detect hidden files we can combine the code with attrib code (Read about set or changes files attributes) [...]
Pingback from Simple Steps to anticipate Virus
Time May 17, 2009 at 12:14 pm
[...] computer from virus attacks. The first step is to change the default settings that Windows hides hidden files, system files and extensions that have been known. The aim is to distinguish which file and where [...]