Re: How to detect if current directory is on a CD
- From: RoyVidar <roy_vidarNOSPAM@xxxxxxxx>
- Date: Sat, 22 Jul 2006 16:12:52 +0200
"ipellew@xxxxxxxxxxxxxxx" <ipellew@xxxxxxxxxxxxxxx> wrote in message <1153570985.379173.95480@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>:
Hi;
I have a DBS that that generates some javasript and allows the user to alter table contents.
If the database is being executed on a CD/DVD how can I tell is the
current directory is unwritable from within the Access VB module?
Regards
Ian
I would probably work with some of the objects, methods and properties
of the filesystemobject.
With a reference to Microsoft Scripting Runtime, you should be able to
do something like this
dim fs as scripting.filesystemobject
dim dr as scripting.drive
set fs = new scripting.filesystemobject
' or late bind, and use
' set fs = createobject("scripting.filesystemobject")
set dr = fs.getdrive(strYourDrive) ' currentproject.path
debug.print dr.drivetype
Drivetype 4, I think, is CD/DVD.
Usage of the scripting libaries, are frowned upon in these newsgroups,
I think, due to scripting being disabled by some, and I think this
http://www.mvps.org/access/api/api0003.htm is more PC ;-)
--
Roy-Vidar
.
- References:
- How to detect if current directory is on a CD
- From: ipellew
- How to detect if current directory is on a CD
- Prev by Date: Re: Comment to the Microsoft Access world
- Next by Date: Re: How to detect if current directory is on a CD
- Previous by thread: How to detect if current directory is on a CD
- Next by thread: Re: How to detect if current directory is on a CD
- Index(es):
Relevant Pages
|