Your technology certification is waiting. Enroll in Cloud Class ®
Set fs = CreateObject("Scripting.FileSystemObject")
If fs.folderExists("C:\users\public") = False Then
msgbox "C:\users\public exists"
If fs.FileExists("C:\test\test.txt") = True Then
If fs.FileExists("C:\test\autoexec.lnk") = True Then
strSource = "c:\test\copyme.txt"
strTarget = "c:\test\copied.txt"
fs.CopyFile strSource, strTarget, True
Open in new window
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
This course teaches how to install and configure Windows Server 2012 R2. It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).