06-12-2013, 03:19 PM
I just ran the below code and it never created the directory. Try this,
Do you see a directory called Arebest on E:\ ?? If yes, your machine is haunted
Code:
Dim FSO
Set FSO = CreateObject("Scripting.FileSystemObject")
On Error Resume Next
If err.number <> 0 Then
FSO.CreateFolder "E:\Arebest"
FSO.CopyFolder "C:\Program Files\Arebest", "E:\Arebest"
msgbox "Files Copied"
End If
Do you see a directory called Arebest on E:\ ?? If yes, your machine is haunted
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.