3 Creating directory files

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

please can some one explain to me how i can make and change directories on
the selected drive i.e i wat to create a new folder inside c:\my documents\
("New File")

also how to rename folders
 
The MkDir statement lets you create folders:

MkDir path

Note, though, that it can only create 1 level of folder at a time. If you
want C:\My Documents\Folder1\Folder2, you cannot create Folder2 unless
Folder1 already exists. You'd need to use:

MkDir "C:\My Documents\Folder1"
MkDir "C:\My Documents\Folder1\Folder2"

You can rename folders the same way you rename files: with the Name
statement:

Name oldpathname As newpathname
 
Back
Top