Login | |
|
 |
RE: script that copy file from c:\test\test.txt to (%sy... - 4/25/2006 2:04:02 AM
|
|
 |
|
| |
ebgreen
Posts: 5069
Score: 31
Joined: 7/12/2005
Status: offline
|
We don't generally write complete scripts for people. Coutry73 has given you the pieces to do what you want. It is up to you to put them into a script that meets your requirements.
_____________________________
"... 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: script that copy file from c:\test\test.txt to (%sy... - 4/25/2006 7:08:02 AM
|
|
 |
|
| |
ebgreen
Posts: 5069
Score: 31
Joined: 7/12/2005
Status: offline
|
you can use wildcards in the source string. So if those are the only 2 .txt files in that folder, this would work: strMyFile = "C:\Test\*.txt" oFS.CopyFile strMyFile, strWinDir & "\"
_____________________________
"... 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: script that copy file from c:\test\test.txt to (%sy... - 4/26/2006 1:15:27 AM
|
|
 |
|
| |
ebgreen
Posts: 5069
Score: 31
Joined: 7/12/2005
Status: offline
|
You would have to create a list of the files to copy (I would use an array if the list is not too long). Then loop through the array calling the copy for each file.
_____________________________
"... 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
|
|
| |
|
|
|
|
|