Below is my code. Any help would be appreciated.
If you are using a network path, you don't need to call "Server.MapPath".
currFileName = Server.MapPath("\\myMachine1\\SPI-Share\\Reboot_wkly_rpt.txt")
fileNameTemp = Server.MapPath("\\myMachine1\\SPI-Share")
fso = CreateObject("Scripting.FileSystemObject")
mainfile=fso.GetFile(currFilename)
mainfile.Copy (fileNameTemp)
0 comments:
Post a Comment