forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Seeking CDRom Drive Letter and/or Disk Drive

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
noveltech
Contributor
Contributor


Joined: 16 Sep 2002
Posts: 105

PostPosted: Sun Dec 22, 2002 2:54 pm    Post subject: Seeking CDRom Drive Letter and/or Disk Drive Reply with quote

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
View user's profile Send private message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Sun Dec 22, 2002 3:15 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Sun Dec 22, 2002 4:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sun Dec 22, 2002 5:14 pm    Post subject: Reply with quote

Might wanna check this code - it shows removable drives
such as floppies and zips separate from the CD/DVD... Wink

http://www.vdsworld.com/forum/viewtopic.php?t=488

Cheers, Mac Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Sun Dec 22, 2002 6:26 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Sun Dec 22, 2002 7:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
Tommy
Admin Team


Joined: 16 Nov 2002
Posts: 746
Location: The Netherlands

PostPosted: Sun Dec 22, 2002 7:12 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
noveltech
Contributor
Contributor


Joined: 16 Sep 2002
Posts: 105

PostPosted: Mon Dec 23, 2002 2:40 pm    Post subject: Thanks Reply with quote

Thank you, for the suggestions and feedback.

The Find CDRom drive letter works very well.

Thanks again, nt
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group