How to copy and paste dynamically created folders to server using VBScript -
i'm executing auto tcs & generating report folder each tc. after generated each report floder, need copy & paste report server.
i can copy reports after completion of tcs, want copy & paste each new report after completion of each tc.
how can achieve using vbscript?
dim ofso dim rfol, lfol set ofso = wscript.createobject("scripting.filesystemobject") rfol = "d:\test" lfol = "\reports\*.*" if ofso.folderexists(rfol) wscript.quit else msgbox rfol & " not exist. press ok copy." ofso.createfolder rfol ofso.copyfolder lfol, rfol, true end if
Comments
Post a Comment