/ Published in: Visual Basic
VBScript!
Expand |
Embed | Plain Text
Dim fso, newFile, tplFile, fPath fPath = "C:\" tplFile = fPath & "tpl.txt" newFile = fPath & "export.txt" Set fso = CreateObject("Scripting.FileSystemObject") if fso.FileExists(newFile) then MsgBox "File already exists." else fso.CopyFile tplFile, newFile MsgBox "File copied." end if
You need to login to post a comment.
