Login | |
|
 |
RE: Urgent Mulitple File Copy Issue... - 7/9/2008 12:31:18 AM
|
|
 |
|
| |
ebgreen
Posts: 5041
Score: 31
Joined: 7/12/2005
Status: online
|
Try using wscript.echo to make sure the file name is valid: Set fso = CreateObject("Scripting.FileSystemObject") src = "\\egnsw2kfp1\Library\Product\Ring\6000\panel\Ring_Designer\To_Be_Cataloged\" Set inFile = Fso.OpenTextFile("e:\kirk\missing\6000\xpring03_missing_6000-tbc.txt", 1) Do Until inFile.AtEndOfStream temp = inFile.ReadLine dest = "\\egnsxpring03\c$\panels\6000_not_batched\to_be_cataloged\" WScript.Echo src & temp fso.CopyFile src & temp, dest, true Loop
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: Urgent Mulitple File Copy Issue... - 7/9/2008 12:55:51 AM
|
|
 |
|
| |
ebgreen
Posts: 5041
Score: 31
Joined: 7/12/2005
Status: online
|
The second script just looks at every file in the source folder. For each file it checks to see if the file exists in the destination folder. If it doesn't exist then it copies it.
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: Urgent Mulitple File Copy Issue... - 7/9/2008 1:08:15 AM
|
|
 |
|
| |
Rischip
Posts: 502
Score: 2
Joined: 3/26/2007
Status: offline
|
Depending on how "Urgent" this is..... I would download and use Beyond Compare from Scooter Software. Then fix the script for future copies
_____________________________
Rischip Author of - The Grim Linker
|
|
| |
|
|
|
|
|