Hello All,
I receive many files with similar content each day. All I want to do is copy them into one file, then I'll use that file for my processes. Using
vb2005. I've tried:
Shell("copy c:\CND\dr*.txt C:\CND\TestC.txx")
That comes back with "File not found". There are files there!
Tried:
File.Copy("c:\CND\dr*.txt", "C:\CND\TestC.txx", True)
That failed also.
I've run the Shell command line from the command line in xp and it works as expected. What am I doing wrong???
Thanks,
Hexman
HKSHK - 01 Aug 2006 07:48 GMT
Hello Hexman,
The "File not found" messages is not related to your text files, but to
"copy" (there is no copy.com or copy.exe; it's in internal Command from
Command.com).
You should use this line instead:
Shell ("cmd /C copy C:\CND\dr*.txt C:\CND\TestC.txx")
Best Regards,
HKSHK
> Hello All,
>
[quoted text clipped - 16 lines]
>
> Hexman
Hexman - 01 Aug 2006 09:09 GMT
Works Great. Thanks for the education!!
Hexman
>Hello Hexman,
>
[quoted text clipped - 29 lines]
>>
>> Hexman