Main Menu

HOME

.Net
ASP
Assembly
C
C++
Delphi
HTML
Java
JavaScript Site
MySQL
PC interface
Powershell
Perl
PHP
VBScript
Visual Basic
XML

US Job listings




   Misc

   Amazon

   Links

    


Select a drive in DOS
 

 

 

Description

This shows all the disk drives present on the system . This is for DOS based systems.

Code

#include <stdio.h>
#include <dir.h>

void main(void)
{
int drives;

drives = setdisk(3);
printf("The number of available drives is %d\n", drives);
}

Information

tested using Borland Turbo C

Download

selectdrive1.txt

 

 

 

 

 

 




   Sponsors
 

   Software
500 Java Tips E-book
PHP editor
PERL editor
Beginning Java
Beginning Visual Basic
Learn VB.net
Learn VB 6
VB and databases
ASP image library
C++ builder programming
C++ fundamentals

   Source Code
displays some disk drive parameter in an excel spreadsheet(VBScript)
Delete a folder(ASP)
select box example(HTML)
Reading RSS feeds with PEAR xml_rss package(PHP)
.Net supported(ASP.net)
Sending an e-mail attachment(ASP)
getservbyport function returns the name of the service that uses a specified port(PHP)
View content once(ASP)

    




Copyright © 2003 by programmershelp.co.uk