Option expedition
PRIVATE SUB Command1_Click () DIM DSTFILEPATH AS STRINGDIM FS AS Object
DstFilePath = "// chenfeng / c: /" 'target file path set fs = createObject ("scripting.filesystemObject")' Create a file system object if fs.fileexists (DstfilePath & "cstest.txt") THEN IF MSGBOX ("You The test paper has been sent, and it will be sent again.
Me.MousePointer = 11 fs.copyfile "c: /cstest.txt", dstfilepath 'copy file to target folder me.mousepointer = 0nd Sub