| View previous topic :: View next topic |
| Author |
Message |
noveltech Contributor

Joined: 16 Sep 2002 Posts: 105
|
Posted: Sun Dec 22, 2002 2:54 pm Post subject: Seeking CDRom Drive Letter and/or Disk Drive |
|
|
VDS searches for CDRom assigned drive {letter}.
1. Informs client to insert win cd/diskett...if CD, Insert WIN CD in Drive {Letter}
2. Client clicks Yes/No after CD/Diskett is inserted.
3. If YES...VDS searches the A and CDRom drive {letter} for MEDIA.
The hard part = Knowing which drive letter the CDRom
has been assigned and using {letter} in [search and copy] files code
from A or CDRom{Letter} to Client machine.
All feedback welcomed. Thanks, nt |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Sun Dec 22, 2002 3:15 pm Post subject: |
|
|
You can use this chunk of script to find dive letters and what type of drive
it is.
| Code: |
:CheckDrives
%d = "DEFGHIJKLMNOPQRSTUVWXYZ"
%x = 1
repeat
%%drive = @substr(%d, %x)
%v = @volinfo(%%drive,T)
if %v
info %%drive is a %v drive
end
%x = @succ(%x)
until @greater(%x, 23)
exit
|
hope this helps _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sun Dec 22, 2002 4:12 pm Post subject: |
|
|
You should change that a little bit, because there are people who use the 'A' for a CD-ROM drive...
| Code: | :CheckDrives
%d = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
%x = 1
repeat
%%drive = @substr(%d, %x)
%v = @volinfo(%%drive,T)
if @equal(%v,CD-ROM)
info %%drive is a %v drive
end
%x = @succ(%x)
until @greater(%x, 26)
exit |
|
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Sun Dec 22, 2002 6:26 pm Post subject: |
|
|
The following code retrieves a list of drives on a system and returns
the drive letter: drive label drive type
| Code: |
list create,1
%C = 65
repeat
%S = @volinfo(@chr(%C), T)
if @ok()
list add,1,@chr(%C): @volinfo(@chr(%C),L) @volinfo(@chr(%C),T)
end
%C = @succ(%C)
until @equal(%C,90)
info System Drives@cr()@text(1)
list close,1
|
For most people with floppy drives, at least here in the USA, the floppy's
drive letter is "A". The code above reports the drive letter, and type, as
well as the drives label.
Maybe this will help.
Edit #1:
Changed search to look for drive types, not amount of space. _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it."
Last edited by ShinobiSoft on Sun Dec 22, 2002 9:04 pm; edited 1 time in total |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sun Dec 22, 2002 7:11 pm Post subject: |
|
|
| Well, over here in the Netherlands most people also use a 'A' for their floppy drives, but I have seen a few network PCs at my school which used the 'A' for the CD-ROM player, the 'B' for our personal network directory, and the 'C' for the hard-disc... |
|
| Back to top |
|
 |
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Sun Dec 22, 2002 7:12 pm Post subject: |
|
|
If you configure a computer to boot from CD-ROM I think it will use drive A: for the CD-ROM
drive and it may use drive B: or even different one for any possible floppy disk drive. |
|
| Back to top |
|
 |
noveltech Contributor

Joined: 16 Sep 2002 Posts: 105
|
Posted: Mon Dec 23, 2002 2:40 pm Post subject: Thanks |
|
|
Thank you, for the suggestions and feedback.
The Find CDRom drive letter works very well.
Thanks again, nt |
|
| Back to top |
|
 |
|