Main Menu

HOME

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

US Job listings




   Misc

   Amazon

   Links

    


This program deletes a folder

 

'This program deletes a folder

Dim strDir As String


Private Sub Command1_Click()
On Error GoTo ErrHandler:
strDir = InputBox("Enter the directory you wish to remove", "Directory")

RmDir (strDir)
MsgBox "Directory " & strDirectory & " has been removed", vbSystemModal + vbOKOnly, "Directory Removed"
ErrHandler:
MsgBox "This directory does not exist, please re-enter a valid path", vbExclamation + vbOKOnly, "Invalid Directory"
End Sub

 

 

 

 

 




   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
Right click on folder command prompt(VBScript)
API disable ctrl alt and del .Not XP or 2000(VB)
box gradient effect(VB)
display information about shares on your computer(VBScript)
Dice game(C)
Sending an HTML email(ASP)
Constants in C(C)
Previous page button(Javascript)

    




Copyright © 2003 by programmershelp.co.uk