I'm writing a script to do an automatic install of an application on user pcs. This requires copying a number of folders that hold around 750 files. Everything works fine except the copy of 13 .dat files in one subdirectory. These files do not copy with the CopyFolder command, so I created a batch file to shell out and do a copy in a DOS window. The batch file works fine when executed from Explorer, but gives "ACCESS IS DENIED" when run under VB.
The VB code that does not copies all but the 13 files is:
FSys.CopyFolder "D:\C5", "C:\C5", overwrite
The batch file that works standalone but not under VB is:
COPY D:\C5\X_WIN95\X_LANSA\*.* C:\C5\X_WIN95\X_LANSA\*.*
The permissions for these 13 files look exactly like those for the other 700+ files that copy properly. What is different under VB?
Thanks for any help
The VB code that does not copies all but the 13 files is:
FSys.CopyFolder "D:\C5", "C:\C5", overwrite
The batch file that works standalone but not under VB is:
COPY D:\C5\X_WIN95\X_LANSA\*.* C:\C5\X_WIN95\X_LANSA\*.*
The permissions for these 13 files look exactly like those for the other 700+ files that copy properly. What is different under VB?
Thanks for any help