[ SOLVED ] XCopy Question ??

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Dos_Probie
Posts: 233
Joined: 21 Nov 2010 08:07
Location: At My Computer

[ SOLVED ] XCopy Question ??

#1 Post by Dos_Probie » 11 Jul 2013 11:47

I have a script that does a XCopy of File.dll from my source of %~dp0files\File.dll to C:\Apps directory, sometimes
File.dll is already present and other times it's not what is a simple way in the batch to check if File.dll is
not present then XCopy over and if there just continue on with the rest of my my script? Thanks DP
Last edited by Dos_Probie on 11 Jul 2013 14:30, edited 1 time in total.

Squashman
Expert
Posts: 4488
Joined: 23 Dec 2011 13:59

Re: XCopy Question ??

#2 Post by Squashman » 11 Jul 2013 11:52

IF NOT EXIST "C:\Apps\File.dll" XCOPY ........

Dos_Probie
Posts: 233
Joined: 21 Nov 2010 08:07
Location: At My Computer

Re: [ SOLVED ] XCopy Question ??

#3 Post by Dos_Probie » 11 Jul 2013 14:31

Thanks Squash!!...That works 8)

Post Reply