home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
pcresour
/
1981_05
/
lock.bat
< prev
next >
Wrap
DOS Batch File
|
1988-08-10
|
265b
|
16 lines
ECHO OFF
IF "%1"=="" GOTO NOPARAM
SET LOCK=%1
GOTO LOCK
:NOPARAM
IF "%LOCK%"=="" SET LOCK=*.*
:LOCK
IF NOT EXIST %LOCK% GOTO NOFILE
ATTRIB +R %LOCK%
ECHO File(s) %LOCK% write-protected.
GOTO END
:NOFILE
ECHO File(s) %LOCK% not found.
:END
SET LOCK=