Login | |
|
 |
RE: copy error, need help! - 5/9/2008 5:25:11 PM
|
|
 |
|
| |
DiGiTAL.SkReAM
Posts: 1056
Score: 6
Joined: 9/6/2005
From: Florida, USA
Status: offline
|
Yucko. Using WMI for file management is, to me, akin to pounding oneself in the groin with a sledgehammer for an hour... very painful, and any gains that you make are FAR outweighed by the effort you exert. I much prefer the FileSystemObject, and can't understand why everyone keeps saying that it doesn't work across a network. FSO works beautifully across a network, you just have to give it the proper path... Say you have the path to a file: v:\temp stuff\my funky little file.txt or even \\servername\sharename\temp stuff\my funky little file.txt set oFSO = CreateObject("Scripting.FileSystemObject") oFSO.GetFile("v:\temp stuff\my funky little file.txt").Copy "c:\my new location for files\" set oFSO = CreateObject("Scripting.FileSystemObject") oFSO.GetFile("\\servername\sharename\temp stuff\my funky little file.txt").Copy "c:\my new location for files\"
_____________________________
"There's the one man who learns by reading, the two men that learn by watching, and the rest of us have to pee on the electric fence for ourselves." - Roy Rogers "Would you like to touch my monkey?" - Dieter (Mike Meyers)
|
|
| |
|
|
|
| |
|
|
 |
|
 |
|
|