Copying a file that may be in use

jmorris2k
06-26-2001, 10:56 AM
Is there a way to copy a file that may be being written to? The FileCopy function will not do it. It gives me "permission denied". However, I can copy the same file using a simple copy or xcopy command in DOS. Is there a way to do this with VB? Thanks in advance.

jerryfchui
06-26-2001, 11:28 PM
Try the command
shell(variableA)

where variableA is a string that contains the value like
"C:\myprogram\abc.bat"

And abc.bat is a command file having the MSDOS xcopy or copy command

....

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum