Visual Basic Explorer
Visual Basic Explorer
 Navigation
 Home


 Coding
 Source Code

 FAQ Center

 VB Tips

 Downloads

 ToolBox

 Tutorials

 VB Games

 VB News

 VB Award

 VB Forums



 Affiliates
 Planet Source Code

 Rent a Coder

 DirectX4VB


 Misc
 Search

 Feedback

 Advertise

 About


Need to hire
a VB coder?

Please support our sponsor:

 Home 
 Site Map 
 Forums 
 News 
 Feedback 

 

'------------------------------------------------------
'How To: Some file manipulation commands
'Posted: June 1998
'From: "Rich Yarnell" ryarnell@andrew.cmu.edu
'------------------------------------------------------
DELETE FILE:
'Assume TESTFILE is a file containing some data.

 
ill "TestFile"' Delete file.

 
ill "*.TXT"' Delete all *.TXT files in current directory.

 
DELETE DIR:
' Assume that MYDIR is an empty directory or folder.
mDir "MYDIR"' Remove MYDIR.

 

 
MAKE DIR:
kDir "MYDIR"' Make new directory or folder.

 

 
MOVE FILE:
Dim OldName, NewName
OldName = "C:\MYDIR\OLDFILE": NewName = "C:\YOURDIR\NEWFILE"
ame OldName As NewName' Move and rename file.

 

 
COPY FILE:
Dim SourceFile, DestinationFile
ourceFile = "SRCFILE"' Define source file name.
estinationFile = "DESTFILE"' Define target file name.
ileCopy SourceFile, DestinationFile' Copy source to target.


Downloads

In IE right-click and select 'Save Target As...' or in Netscape right-click and select 'Save Link As...'

 

View Plain Text View Plain Text
Download Demo Project Not Available
View Code Online Not Available





Home | About | What's New | Source Code | FAQ | Tips & Tricks | Downloads | ToolBox | Tutorials | Game Programming | VB Award | Search | VB Forums | Feedback | VBNews | Copyright & Disclaimer | Advertise | Privacy Policy |

Quick searches: Site Search | Advanced Site Search 

Copyright 2002 by Exhedra Solutions, Inc.
By using this site you agree to its terms and conditions
VB Explorer and VBExplorer.com are trademarks of Exhedra Solutions, Inc.