MKrauss
asked on
Simple Copy command
how can I simply copy *.* files through VB
best would be to UNC targed
best would be to UNC targed
You could use vb to make a batch file. Then use "shell" to run it. This would let you use any DOS commands.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Use the FileSystemObject (add a reference to Microsoft Scripting Runtime) and use
Dim X as new FileSystemObject
X.CopyFile "c:\*.*", "\\target\folder\"
Dim X as new FileSystemObject
X.CopyFile "c:\*.*", "\\target\folder\"
Sorry Azrasound - your comment came up as I was posting !
ASKER
Works fine => Thanks
not a problem paul...thanks for the B mk