Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21238

[RESOLVED] Shell "xcopy"

$
0
0
Hi,

I using Xcopy to copy files into SH:
Code:

Dim CopyString1 As String
Dim CopyString2 As String

Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.MapNetworkDrive "V:", "http://........."

CopyString1 = INC_FILE
CopyString2 = "V:\......."

Shell "xcopy" & Chr(34) & CopyString1 & Chr(34) & " " & Chr(34) & CopyString3 & Chr(34)

Shell is asking me thaht I want to OVERWRITE the file. Is any options to set default to "YES"?

Below code don't work
Code:

Shell "xcopy /r"
Shell "xcopy /y"


Viewing all articles
Browse latest Browse all 21238

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>