Home > Software engineering >  Vb file copy
Vb file copy

Time:09-19

P=p & amp; "\ Library
"P1=p & amp; "1 _library "
MsgBox (p)
Dim fso
The Set of fso=CreateObject (" Scripting. FileSystemObject ")
Fso CopyFolder p, p1


Why do you not write

CodePudding user response:

It means that what mistake?

Should be can't bring a directory kao to "own subdirectory"!!!!

You put "target path" to change a place, why the specified directory under the source!

CodePudding user response:

P1=p & amp; "\ PEDC3_Library
"The p2=p & amp; "\ PEDC3_1_Library
"MsgBox (p)
Dim fso
The Set of fso=CreateObject (" Scripting. FileSystemObject ")
Fso. CopyFolder p1, p2

P is my dynamic access to boot path
Changed after the wrong file name or number
A great god for help

CodePudding user response:

The last line 13 bytes

CodePudding user response:

The last line 13 characters

CodePudding user response:




refer to the second floor gufeng07 response:
p1=p & amp; "\ PEDC3_Library
"The p2=p & amp; "\ PEDC3_1_Library
"MsgBox (p)
Dim fso
The Set of fso=CreateObject (" Scripting. FileSystemObject ")
Fso. CopyFolder p1, p2

P is my dynamic access to boot path
Changed after the wrong file name or number
Great god help!

" "wrong file name or number, are you sure is this mistake?


Does it include in your source folder "" no" to read the file "(the actual probably don't have any access) the file or folder?
Another is that "destination folder you have write permissions?

CodePudding user response:

Somebody else there file extensions,

CodePudding user response:

Copy files or copy the folder? In addition, there is disabled in some systems, especially the fake pirated Windows,
Vb own copy is filecopy statements
  • Related