Link to home
Start Free TrialLog in
Avatar of MKrauss
MKrauss

asked on

Simple Copy command

how can I simply copy *.* files through VB
best would be to UNC targed
Avatar of scibberme
scibberme

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
Avatar of AzraSound
AzraSound
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Use the FileSystemObject (add a reference to Microsoft Scripting Runtime) and use

Dim X as new FileSystemObject

X.CopyFile "c:\*.*", "\\target\folder\"
Sorry Azrasound - your comment came up as I was posting !
Avatar of MKrauss

ASKER

Works fine => Thanks
not a problem paul...thanks for the B mk