Accessing files on CD drives under Windows

xavier.bury at clearstream.com xavier.bury at clearstream.com
Thu Sep 6 07:57:07 EDT 2007


DiskPart is an interactive shell application, like telnet or ftp, it will 
wait for your next input which Rev still can't handle. 
I think i proposed the feature to MetaCard long ago but it is most likely 
not coming.

Also for diskPart to work, you need to select which disk and which 
partition you want to list each time. So just that will fail you...

To find the volume name, you go through each letter in the volumes() 
function and do a 

repeat for each line driveletter in the volumes
  put last word of shell("dir" && driveletter && "| findstr /i  Volume in 
drive") & CR after volumeNameList
end repeat

This will return the line which has the volume name out of the list. 
Normally just the last word but it could be more than one which would make 
the script above a bit more complicated... Left as an excercise ;)

regards,
Xavier

use-revolution-bounces at lists.runrev.com wrote on 06/09/2007 10:23:47:

> 
> Le 29 nov. 06 à 17:38, Geir A. Myrestrand a écrit :
> 
> > Francis Nugent Dixon wrote:
> >
> >> Anybody know how I can find the Volume Names on all the PC devices,
> >> as is possible on the Mac, so I can access my CD files ?
> >
> > You can use the "list volume" command in diskpart:
> >
> > C:\>diskpart
> >
> > Microsoft DiskPart version 5.1.3565
> >
> > Copyright (C) 1999-2003 Microsoft Corporation.
> > On computer: STINKPAD
> >
> > DISKPART> list volume
> >
> >   Volume ###  Ltr  Label        Fs     Type        Size 
> > Status     Info
> >   ----------  ---  -----------  -----  ----------  ------- 
> > --------- --------
> >   Volume 0     D   Linux Devic  CDFS   DVD-ROM      307 MB
> >   Volume 1     C   IBM_PRELOAD  NTFS   Partition     71 GB  Healthy 
> > System
> >
> 
> 
> Hello,
> 
> How use these commands with Rev to get the list ?
> this script :
> put shell("Diskpart"&cr&"list volume" doesn't work (diskpart seem 
> "frozen")
> 
> Thanks !
> 
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution



----------------------------------------------------------------------------
Clearstream Services S.A.
42 Avenue JF Kennedy, L-1855 Luxembourg
Société anonyme is organised with limited liability
in the Grand Duchy of Luxembourg RC Luxembourg B 60911.


-----------------------------------------
Visit us at http://www.clearstream.com

IMPORTANT MESSAGE

Internet communications are not secure and therefore Clearstream
International does not accept legal responsibility for the contents
of this message.

The information contained in this e-mail is confidential and may be
legally privileged. It is intended solely for the addressee. If you
are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful. Any views expressed in
this e-mail are those of the individual sender, except where the
sender specifically states them to be the views of Clearstream
International or of any of its affiliates or subsidiaries.

Legally required information for business correspondence/
Gesetzliche Pflichtangaben fuer Geschaeftskorrespondenz:
http://deutsche-boerse.com/letterhead

END OF DISCLAIMER


More information about the use-livecode mailing list