
10-24-2002, 07:51 PM
|
|
Original Contributor
Retired Moderator * Guru *
|
|
Join Date: Jan 2001
Location: Watch Window
Posts: 2,781
|
|
In order to use the above exampe you will have to set a reference to Microsoft Scripting Runtime.
However, I would use the Name Statement to move and/or rename it.
This will take a folder from the desktop and move it and rename it to the C:\ drive. That is, if you have Win9x. If you have 2k then change it acordingly. It will also move the files in the folder:
Code:
Option Explicit
Private Sub Form_Load()
Name "C:\Windows\Desktop\New Folder" As "C:\Newer Folder"
End Sub
|
__________________
JDT
|