Domanda

Hi I would like to copy all the files from a folder on my local machine to a network drive. I tried using CopyFiles "....\Source*." "\abc\Destination" But its not working..... I also tried File /r "....\Source*." "\abc\Destination". Please let me know where am i going wrong. Also please let me know how to copy the folder on the ftp site

È stato utile?

Soluzione

Copyfiles uses SHFileOperation internally and should work as long as you follow that api's restrictions, especially the part about full paths: "It cannot be overstated that your paths should always be full paths" and "Standard MS-DOS wildcard characters, such as "*", are permitted only in the file-name position. Using a wildcard character elsewhere in the string will lead to unpredictable results"

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top