Page 1 of 1 1
Topic Options
#34557 - 2002-12-19 06:53 PM Check for Floppy Disk in Drive
Anonymous
Unregistered


Hello,

I am using the 16 bit version of kix to build my nt4 and w2k unattend.txt files. I am checking to see if the user ejected the floppy from the drive. The script below works only when the floppy is in the drive, once the floppy is removed I get an error reading drive a: abort, retry, fail. Any ideas? Thanks in advance.

-Brian

code:
        ? "Please remove floppy and press any key to continue..."
get $null
while (exist("a:\*.*") = 0)
? "Please remove floppy and press any key to continue..."
get $null
loop


Top
#34558 - 2002-12-19 07:28 PM Re: Check for Floppy Disk in Drive
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
There are DOS utilities that do this, why not use one of them?
_________________________
Jack

Top
#34559 - 2002-12-20 11:44 PM Re: Check for Floppy Disk in Drive
Anonymous
Unregistered


What's the name of the utility I should use?

Thanks.

Top
#34560 - 2002-12-21 12:18 AM Re: Check for Floppy Disk in Drive
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Doesn't Google show these? [Smile]

Hmm..

Kent

[ 21. December 2002, 00:18: Message edited by: kdyer ]
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#34561 - 2002-12-21 03:00 AM Re: Check for Floppy Disk in Drive
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11631
Loc: CA
This works on Windows 2000 but don't have DOS or Win9x to try on for you... but should give you something to work with.

Sorry, but not everyone on the board is that old... [Razz] And since this is a KiXtart board, some don't venture too much beyond KiXtart help.

Oh Well, give something like this a try.
code:
@echo off
IF EXIST a:\NUL echo found something in the A drive

I assume you know how to run this from KiX, if not post or look in the FAQ and I'll show you how.

Top
Page 1 of 1 1


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

Who's Online
0 registered and 302 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.049 seconds in which 0.022 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