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
list files of a certain type in a word document(VBScript)
use a process to open a fie in notepad(VB.net)
list files in a folder in a text file(VBScript)
Browser Detection(PHP)
Get all disk drives(C Sharp)
Circumference of a circle(C)
vertical scrolling text(Darkbasic)
View contents of your inbox(ASP)

    




Copyright © 2003 by programmershelp.co.uk