home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Encyclopedia 96-1
/
novell-nsepro-1996-1-cd2.iso
/
download
/
netware
/
n4bats.exe
/
SMODE.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-04-20
|
1KB
|
43 lines
@ECHO OFF
if "%1"=="" goto all
if "%1"=="/?" goto usage
if "%1"=="/S" goto subdir1
if "%1"=="/s" goto subdir1
if "%2"=="" goto filespec
if "%2"=="/S" goto subdir2
if "%2"=="/s" goto subdir2
flag %1 /M=%2
if %errorlevel==1 goto usage
goto end
:all
flag
if %errorlevel==1 goto usage
goto end
:subdir1
flag *.* /S
if %errorlevel==1 goto usage
goto end
:subdir2
flag %1 /S
if %errorlevel==1 goto usage
goto end
:filespec
flag %1
if %errorlevel==1 goto usage
goto end
:usage
echo SMODE.BAT
echo Usage: SMODE [path [mode]] /S
echo option /S include subdirectories
echo modes: 0 shell default search mode
echo 1 search on all opens with no path
echo 2 do not search
echo 3 search on read-only opens with no path
echo 4 reserved (do not use)
echo 5 search on all opens
echo 6 reserved (do not use)
echo 7 search on all read-only opens
echo or use FLAG path /M=mode
:end