1.

Solve : Copy directory / subdirectory to another drive?

Answer»

Have been USING the following (visual basic BASED?):
FileCopy "D:\Nos.pdf","E:\Nos\Production.pdf"
to copy individual files from the D drive directory to
the E drive directory.

What code should be used to copy the particular directory
from the D drive to the E drive directory?

(The above filecopy script is only a part of another main
script).

Thanks.
Hi ,

You may use the SHELL command in VB Script to RUN a XCOPY command with /s feature. The command would be

SHELL "XCOPY D:\dirname F:\ /s

Hope this will help.Quote from: HU on JULY 19, 2007, 01:24:08 AM

Have been using the following (visual basic based?):
FileCopy "D:\Nos.pdf","E:\Nos\Production.pdf"
to copy individual files from the D drive directory to
the E drive directory.

What code should be used to copy the particular directory
from the D drive to the E drive directory?

(The above filecopy script is only a part of another main
script).

Thanks.

check the visual basic help for FileCopy. If you read that, you can get the answer.


Discussion

No Comment Found