Computing.Net > Forums > Disk Operating System > Copy/Move Files (one more thread)

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Copy/Move Files (one more thread)

Reply to Message Icon

Name: VFarkas
Date: October 7, 2003 at 13:27:39 Pacific
OS: Win XP Prof
CPU/Ram: Celeron 2,4
Comment:

Hi!!!!!

I would like to move files C:\new\*.doc to c:\old. So far so good. But in C:\old already exists some files with the same name. The files with no double should be moved. The others with a double in c:\old should stay in c:\new. How it works? I work on it some weeks but find no solution. It should work automatically in a batch file



Sponsored Link
Ads by Google

Response Number 1
Name: IVO
Date: October 8, 2003 at 01:56:13 Pacific
Reply:

Insert the following statement into your batch

For %%I in (C:\new\*.doc) Do (
If not exist C:\old\%%~nxI Move "%%~fI" C:\old > Nul )

That works as you like, but it runs only under Windows NT/2K/XP environments.

If you need more support, post again


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Copy/Move Files (one more thread)

Moving multiple files from multiple www.computing.net/answers/dos/moving-multiple-files-from-multiple/14060.html

Copying folders from one directory to another www.computing.net/answers/dos/copying-folders-from-one-directory-to-another/16955.html

Copying a File to Multiple Disks www.computing.net/answers/dos/copying-a-file-to-multiple-disks/4355.html