How do you do this?
in fact my BIOS PC recognize the USB key automatically like a floppy. A
floppy with 32MB memory even if my USB key is 128MB memory. 32MB is enough
for me, it's only for transfer files on other system. So like my USB Key is
seen like a floppy , I can unplug and plug easily. So when I delete a file
on other PC then my DOS don't see the modifications.
But what DOS do you run, and how does it show up as a drive letter?
Or are you saying you boot from it?
If this is what I think it is, your BIOS isn't emulating the floppy disk
change line. You may be able to send a reset drive service call to the
BIOS.
using DEBUG
-a 100
xor ah,ah
mov dl,0 <- drive number
int 13h
int 20h
-rcx
:8
-nreset.com
-w
-q
It has been a while since I have used DEBUG, so I hope that is
the write sequence.
Make sure you use the correct drive number, 0 for the first floppy,
1 for the second, 80h for the first hard drive, etc.
If the BIOS is emulating the USB flash as 32meg, it probably is
80h instead of 00h, though I have never tried it myself.
I don't remember if the reset service clears the change line or
not. However, you can try it.
Ben
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Forever Young Software
http://www.frontiernet.net/~fys/index.htm
To reply by email, please remove the zzzzzz's
Batteries not included, some assembly required.
Try Ctrl + C when in the drive. It used to work for floppies that were
changed without the OS noticing.
--
T.E.D. (tda...@mst.edu)
So if you cannot easily do a reset, at least try DIR myusbkeydisk:
first like " DIR B:"
and yet , Thanks a lot for your helps.
Philippe
"Benjamin David Lunt" <zf...@frontiernet.net> a écrit dans le message de
news: _E99k.33579$t44....@fe105.usenetserver.com...
You can take the USB key to another computer, delete a file, then
bring the USB key back to original computer, and see that the file
has been deleted, but the freespace value has unchanged. i.e.: when
you do a dir listing, the amount of space left on the disk is unchanged,
but the delete file is not listed. Is this what you are saying?
Well, it could be one of a few things.
1. the OS you used to delete the file, marks the files dir entry
as deleted, but does not free the fat chain, if indeed the USB
key is using FAT. This may be due to some type of undelete
mechanism the deleting OS uses.
2. The OS on the original machine may be storing the freespace amount
in memory so that it doesn't have to calculate it each time you
do a dir listing, which is a slow process. However, I don't remember
DOS doing this.
Is it a true DOS you are running on the original machine, or is it a
DOS window under Windows? If it is a DOS session under Windows, I
have seen similar results using a floppy disk.
Before you insert the USB key back into the original machine, try
to do a dir listing of that logical drive. This may tell the host
OS that there is no disk in the drive. Then insert the USB key
and do another dir listing.
The way it sounds, you are using a DOS session under the Windows95
family. Win95/98/ME family.
Yes,
> Well, it could be one of a few things.
>
> 1. the OS you used to delete the file, marks the files dir entry
> as deleted, but does not free the fat chain, if indeed the USB
> key is using FAT. This may be due to some type of undelete
> mechanism the deleting OS uses.
>
> 2. The OS on the original machine may be storing the freespace amount
> in memory so that it doesn't have to calculate it each time you
> do a dir listing, which is a slow process. However, I don't remember
> DOS doing this.
>
> Is it a true DOS you are running on the original machine, or is it a
> DOS window under Windows? If it is a DOS session under Windows, I
> have seen similar results using a floppy disk.
>
it's a TRUE DOS (MS-DOS 6.22)
> Before you insert the USB key back into the original machine, try
> to do a dir listing of that logical drive. This may tell the host
> OS that there is no disk in the drive. Then insert the USB key
> and do another dir listing.
good idea.
so, when we try to do a dir listing of A: withou USB key -> Problem on
drive A: ->OK
insert the USB key , dir listing -> OK and the memory space free is OK
Then there is therefore definitily a function which exists to make it !!!
I seached with BPB (bios parameter block) ,DPB ( drive parameter block) but
without succes!
can yopu help me
DOS is resetting the Disk Parameter Block entry (DPB).
Without going and looking, I think the List of Lists points to this
DPB list and there you can modify the first entry, as long as the
first entry is your USB disk.
Okay, I went and looked:
http://www.ctyme.com/intr/rb-2983.htm
Offset 00h is the pointer to first Drive Parameter Block.
Then it should have a DPB outlined at
http://www.ctyme.com/intr/rb-2724.htm
If you are using DOS 4.0 - 6.0, then change the value at 1Fh
to 0FFFFh.
However, I don't recommend modifying it directly. You could
really mess something up if it wasn't done correctly. If this
is the only thing you got, though, make sure you do it correctly.
Ben
"Benjamin David Lunt" <zf...@frontiernet.net> a écrit dans le message de
news: B0Uak.40678$aQ3....@fe085.usenetserver.com...