Page 2 of 2 <12
Topic Options
#56323 - 2001-07-19 03:19 PM Re: Help!!!!!!!!!!!!!!!
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
one thing just can't pass out of my head is: how you have wksta's with floppy drives?
who needs them? admin never. and you are disabling (trying to anyway) from others. I'm not saying this as "bad boy" thingie, but as advice or note in the sea of words: do not buy computers with floppy's in them!

but cheer up, you are done... allmost anyway.

_________________________
!

download KiXnet

Top
#56324 - 2001-07-21 02:38 AM Re: Help!!!!!!!!!!!!!!!
Anonymous
Unregistered


well maybe this does not fit your needs, but it works fine as long the OS is Win9x or Win ME

It is dos commands ( bat file ) not kix

code:

@echo off
goto code

---------------------------------------------------

This shell script will disable or enable the floppy
drive. It is designed to run only on Windoes 95, 98
or millennium. Its usage is very simple :

floppy -e to enable the floppy
floppy -d to disable the floppy


George Bouras
December of 2000
root@novastar.dtdns.net

---------------------------------------------------

:code
echo.

:: check for windows NT, 2000
ver | find "NT" > nul
if errorlevel==1 goto contin
ver | find "2000" > nul
if errorlevel==1 goto contin
echo you are running NT. Script terminated
goto end
:contin


if "%1"=="-e" goto enable
if "%1"=="-d" goto disable
goto help


:disable
subst | find /i "A" > nul
if errorlevel==1 goto ok1
echo floppy is already disabled
goto end
:ok1
subst a: %temp%
echo floppy is disabled
goto end

:enable
subst | find /i "A" > nul
if not errorlevel==1 goto ok2
echo floppy is already enabled
goto end
:ok2
subst a: /D
echo floppy is enabled
goto end


:help
echo syntax error, use as :
echo.
echo floppy -e to enable the floppy drive
echo floppy -d to disable the floppy drive
goto end

:end
echo.



Top
Page 2 of 2 <12


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2366 anonymous users online.
Newest Members
BeeEm, min_seow, Audio, Hoschi, Comet
17882 Registered Users

Generated in 0.06 seconds in which 0.033 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org