home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
pcresorc
/
pcr815.arc
/
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=